From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Sun, 07 Jul 2024 06:30:14 +0200 Message-ID: References: <87msmu1uy5.fsf@gmail.com> <87cynq1sx0.fsf@gmail.com> <878qyeffjh.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6791"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , Helmut Eller , Eli Zaretskii , emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 07 06:30:57 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sQJY8-0001bB-SC for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jul 2024 06:30:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQJXc-0008LQ-BQ; Sun, 07 Jul 2024 00:30:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQJXZ-0008Kq-7C for emacs-devel@gnu.org; Sun, 07 Jul 2024 00:30:21 -0400 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQJXW-0000ny-TQ; Sun, 07 Jul 2024 00:30:20 -0400 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-58b447c519eso3401066a12.3; Sat, 06 Jul 2024 21:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720326616; x=1720931416; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PMsq+zQGULZeT8FIK1lwNeSVtohsX4UqSiNW2Am1k6U=; b=QdHA3XbAUzEqAC83g7/TbBmJrrbXMhO7ZK9xOudVE6yDtMHbm0s5aIJpxVjbJNuduJ ym5qY6pyH9BSQ9O1I/bNwLH5D6K4vBxZKKYlyMxW7Ja3jgFgKYtdQHlbgMoBjBJV1Jvc 4+nqsTFP12DuaO0QEwBQq30oWuonKO3twmZ+GbCAroIHLkHaiit/ZNOnKttQ6HuyEoac /GgAV8Nv+p1ZUgGh9obAEa+Mlql/qwu5yee9JCOZQbABqM5H3ksk1RNXr7qYRe/S1pw+ a2ikTnEHQiv3xXbki7r+dGG8kUEvA0WUbplrz+47KeVpHTN21sPcD+J86EPjuW+YzZwr XNng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720326616; x=1720931416; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=PMsq+zQGULZeT8FIK1lwNeSVtohsX4UqSiNW2Am1k6U=; b=GhQTag4g1dv4hpcTnaRiAr4kY9Q27gD1lEbsHCKd/qPWItZD/6B6c5wZ+JaNdKBPU8 L7rh201ad2OfBA4Be0y4gQX6wE/3w7NrRCTLdqcFPNWUT6mWuCjWej37lHkkPL8zQ4B0 XEfOydtFmyMWIP4yEECn5zIQjH6h2RoH3kRa55FIL3+l6ZKEFAWpSbJFdZTj7u7gmCA8 nh7HC+aM2xUkW60hl4Kln3RQrFcNcPmvzTBr00mbh1CZu2oFQd0zSCEqSRXAF8uNm1B5 ruqAKDyTICmN847eX19GXNgEo6U0CZmD83HK0MogisLMSMVlH+Ri4eF0hsZQX5yRrfQF 2U4w== X-Forwarded-Encrypted: i=1; AJvYcCUabg9SdNsC+gEd58cwmIrOUy6B0sFVGX5QDsOt4WnCNigCnI7nXYZFpgSbpsUsTCbP5kwglmD5jfO4yL1mOf+Fc7ZknHdSr+c44dKTy6uB7pE= X-Gm-Message-State: AOJu0YwNaq95X0lmC7HFMv+ZIHCv+vpX7donzDOzIcOLuRaARF5fI8Su vlThEaYD9uQmutRhqT0009mQv+jJt9ySrydDw05YAmmYw4UAgjU+vj3nvQ== X-Google-Smtp-Source: AGHT+IHkCBA84Y8aeNwkmlNZ7zfZ6FqOaVu4Trbm2gvaTdgwjhwLmG6cdco9Hiayd0jjJmxSA4iVZw== X-Received: by 2002:a05:6402:3583:b0:573:5c4f:27a8 with SMTP id 4fb4d7f45d1cf-58e5cd1222fmr6011177a12.35.1720326615979; Sat, 06 Jul 2024 21:30:15 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a778.dip0.t-ipconnect.de. [79.227.167.120]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5861381868csm11314099a12.55.2024.07.06.21.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jul 2024 21:30:15 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sun, 07 Jul 2024 06:27:05 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321467 Archived-At: Gerd M=C3=B6llmann writes: > Ihor Radchenko writes: > >> Gerd M=C3=B6llmann writes: >> >>> So, we had 14 * 64M total before, and 16 * 64M afterwards. A bit more >>> makes sense since we now have GMP objects, but a dramatic improvement? >>> ... >>> >>> That's the only thing I can come up with ATM. Complete guesswork, of >>> course. I wonder how one would find an "optimal" configuration at all. >> >> I feel kind of silly, but >> https://memory-pool-system.readthedocs.io/en/latest/guide/perf.html >> maybe? It has an example of "dramatic improvement". > > Interestingly, the 3 gens have the opposite effect with the Helmut showed. > > master passed 27/54 ert-test-run-tests-batch-expensive (5.8572= 24 sec) > 2-gen passed 27/54 ert-test-run-tests-batch-expensive (80.113= 908 sec) > 3-gen passed 27/54 ert-test-run-tests-batch-expensive (142.35= 6406 sec) And, BTW, if someone knows why the test is named expensive please let me know. I suppose someone must have had an idea when naming the test. I don't see it.