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:27:05 +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="33819"; 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:27:56 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 1sQJVD-0008bN-Sq for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jul 2024 06:27:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQJUY-0006x9-7s; Sun, 07 Jul 2024 00:27:14 -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 1sQJUW-0006wi-Dp for emacs-devel@gnu.org; Sun, 07 Jul 2024 00:27:12 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQJUU-0008Cv-LZ; Sun, 07 Jul 2024 00:27:12 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2ec1ac1aed2so30601131fa.3; Sat, 06 Jul 2024 21:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720326427; x=1720931227; 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=JDA2bU3JxMIhyXc8RFeA3IFZXKVFWdZcoxGd8Xe4eC0=; b=g+bpZvjaDKqqKe8w2BapjbcZTT7kSGpsTLj6FJNFNcT7Szm4zrD1K5THrhdA1wOvGW NHEJqnl8ksSuSFk/6M+mHZHeY1cOhV9KeBi80g4fh6fghxM1oOwO14J3IpZ1v1VVdXuP Es+31MpdgrWmNkgGS+YhFvV8AwralHNivzZLvGKGLBNNoiDn1F+6NPGtZ6DG0z1BLDrm 3ew5SNdp8VQP+CrjWH5aotW/wnLkMeyOOV+08pdicbI2YRghoQ1o6+jWQwHr62XsmR93 CNMEPNuJ+YPpcHxpc9W+Ag6Bo9p85P85UagZPi86JbEcsqtKc8SG7vJINI/+K8QKfrDg gcxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720326427; x=1720931227; 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=JDA2bU3JxMIhyXc8RFeA3IFZXKVFWdZcoxGd8Xe4eC0=; b=nUzIZh7tUs7fnhB5J9mshhUcOah4WbSqq5W7MLpMz7P6avHkb5w0svrF23xpiQJvuT zEN+0jze1AhoUvFPhMsPdxzm6QwACMMqs3XKGHNRk3TotDgLIavNie770yXLu45mtqLU WUKAzhN3IHKAJVGT4kfx2fKgyelQ8DQuw1PZuDifSn5pR2g4E73pj0pwFWqzTWtM1xgf Kj6QCcwxNr1JD+u2RqCnZ+RhNdBTHd01RMe2WSz4mVkZL5WupHnrmBBwo1oDXJco4nCa sE28Yd214/hwdQ/uX85t+xGLdbG84+3wyaZukXgN4CDEKTGfIoEC+0BuFRDlbohVPDVn YmCQ== X-Forwarded-Encrypted: i=1; AJvYcCVvIAGKQKZk1RKoXc74rx8aWpdHT51aSVrjtaBDFF4zJ4UzukQBopOAj4y6gdJjaQOF4milQxeOHPjYlLGIRIpdAf1ubqxPGP0ArnMJROca97g= X-Gm-Message-State: AOJu0YyREqgC2frrB9X7CiUUSrfTA/dvktEvIss5bmsfFmYLCobX1IHT QH98OjE3pwgYvMmYe6H3xagu+JQPwi2Mada9eU8MizYAJHnr5B4fMZHpBQ== X-Google-Smtp-Source: AGHT+IHBoeCzXJTm6NUS2ValES5bDEnQ6E2xP5DRArNJ667PbbxZObzZl/SPdfOLefU59IL+t+Wzew== X-Received: by 2002:a2e:96c6:0:b0:2ee:8d07:3d64 with SMTP id 38308e7fff4ca-2ee8edc2422mr58579141fa.41.1720326427398; Sat, 06 Jul 2024 21:27:07 -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-58f6f46f4aasm2734518a12.69.2024.07.06.21.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jul 2024 21:27:06 -0700 (PDT) In-Reply-To: <878qyeffjh.fsf@localhost> (Ihor Radchenko's message of "Sat, 06 Jul 2024 20:09:54 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x233.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:321466 Archived-At: 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.857224= sec) 2-gen passed 27/54 ert-test-run-tests-batch-expensive (80.11390= 8 sec) 3-gen passed 27/54 ert-test-run-tests-batch-expensive (142.3564= 06 sec)