From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: MPS: weak hash tables Date: Sat, 06 Jul 2024 11:37:53 +0000 Message-ID: References: <_mNcR6ailVKpYHLxgfo_tJlYGeR0AQIzQWluspYYp5_g5pIIKkHLNfFkklQQgOKNiVW8jn8NS3i2dJ7_B2Qyx9v-Dq3MQ9mP8HNL30UWsqY=@protonmail.com> <878qyf4sgm.fsf@gmail.com> <878qye3l81.fsf@gmail.com> 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="24936"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Gerd_M=C3=B6llmann?= , Eli Zaretskii , Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 06 13:50:13 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 1sQ3vh-0006Lb-2a for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jul 2024 13:50:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQ3uy-00043A-Qf; Sat, 06 Jul 2024 07:49:28 -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 1sQ3jw-0008Ef-4L for emacs-devel@gnu.org; Sat, 06 Jul 2024 07:38:04 -0400 Original-Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQ3js-0006WD-G1 for emacs-devel@gnu.org; Sat, 06 Jul 2024 07:38:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720265878; x=1720525078; bh=7ckh4naomDzr5ogpMd29i0QQRHB1hKmTlp0gM/7Hro0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=KrIIMle801WQGUfr9RQtKcIHwCOmvETEAUCANfDnsfoSkedziGvw4iRGcmXgLw8UV 5hWBNGuX91kq2CYRHGB6N6UeO9w3rQfxDBXf7FWunlobAb3IW1n54Pn9rXOzC12DmC srfw7D7kvjlRocr1y9tlVDfuS7FxRUlszZM5ORH/nJCOrpaAZGxXwvVQGVAe8Z93DP XeX/EV6tDeDCpv9exQFgMriwcrNCc/eLCg1b3SylqfTbU5P8EODIx/G5girHp+gmef rzA7yisCJdwGeopH/ar8UjTWAc+22EJTGlbagLB5nBKrVOEb7Z8pu6Pwg/B3u2ij/Y hTLDaXoYfeZOw== In-Reply-To: <878qye3l81.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: de088d575343e599c3a8a4ba3c09af5e047d25a4 Received-SPF: pass client-ip=185.70.40.133; envelope-from=pipcet@protonmail.com; helo=mail-40133.protonmail.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 06 Jul 2024 07:49:25 -0400 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:321425 Archived-At: On Saturday, July 6th, 2024 at 09:47, Helmut Eller = wrote: > I think finalize_bignum is ever called for something like this: >=20 > ./src/emacs -Q -batch -eval ' > (dotimes (_ 10000000) (set (quote foo) (ash most-positive-fixnum 10000)))= ' maybe_garbage_collect() is a nop with MPS, we should probably change that. = Needs to happen only some of the time, though, or we'll spend too much time= polling for messages (I just tried that, takes forever to build but the co= de runs with apparently constant memory consumption). Note that the need to finalize bignums could also be avoided by making GMP = use MPS allocation and tracing the limbs. I don't think we should, though, = because that'd be messing with GMP internals. Pip