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: Sat, 06 Jul 2024 14:36:20 +0200 Message-ID: References: <-plQctKgNkvp-LJ9ov2QAiXQKxd9V-hI0yz_opRGxQtbknubCjH4rH2-ymgbw_Qr1ZhB1rtlmiEW8XtuIVNr7nR_Yj20AH6WkH6kUGp68g0=@protonmail.com> <_mNcR6ailVKpYHLxgfo_tJlYGeR0AQIzQWluspYYp5_g5pIIKkHLNfFkklQQgOKNiVW8jn8NS3i2dJ7_B2Qyx9v-Dq3MQ9mP8HNL30UWsqY=@protonmail.com> <878qyf4sgm.fsf@gmail.com> <878qye3l81.fsf@gmail.com> <86a5iu4tiy.fsf@gnu.org> 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="16684"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eller.helmut@gmail.com, pipcet@protonmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 06 14:36:42 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 1sQ4ef-00045N-Dn for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jul 2024 14:36:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQ4eT-0006L7-Aj; Sat, 06 Jul 2024 08:36:29 -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 1sQ4eR-0006Kp-Fo for emacs-devel@gnu.org; Sat, 06 Jul 2024 08:36:27 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQ4eP-0007Bk-RZ; Sat, 06 Jul 2024 08:36:27 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-57ccd1111b0so1689266a12.3; Sat, 06 Jul 2024 05:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720269383; x=1720874183; 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=1BqU9S/XJDSlZ8FQ3JdomUr99C+MidBu6ucgwXv/wQs=; b=I+Yq33iSQvmSDcznsfntqqGSSinTa6x+WrY71S3UpclrTTJhpCeQDNNAHKsZKXP0iG WoBBjs6cRC3kIPUa8+qsXoTg//ePt54ZDxjTWymBRsJRHLyq9CYD8sWNTWGGi36Xvc9L 4JIoHbr+LRvnyeolT7/q/kJUsqKAmogcxJdoAafW67ZYiAhEws3dKMgbc8qFs3ySpobM zztKym8lSgAJMFrtQLH7hI2CpNj6FNgckBvPhFi9/KXtGIL5ICVy8rmzM+LduBO19G3o dwC5Q1wgcDKfwsDZcJqfJeO++SayVTfiJ1B5Ejqv2wmgLLv703dqpdIMPfuF5pTofMkr 8w1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720269383; x=1720874183; 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=1BqU9S/XJDSlZ8FQ3JdomUr99C+MidBu6ucgwXv/wQs=; b=XNVrRKz9rWSqWHtjMNwX7LGYl38oT6UXGupoRDXLzjWzzVQvVQscX2MH+PTbTWM0iM AZo/a3pliBk+ilg7+NkcMe/1Byw0XE4t0W4O/tDBGlnNjTyNdrGUfJG8EixJo2+DIDeR OxlDZdQKwj3le/cPD1lkwfLCelDaa5uBj/hRhsNKV+iy7rUWUZKRuSHvvXJJRnAV07tF Y6m1UOVKMzJjgxHs68yiWh9WS+mCFa8ziwwVKNeFAgdMOE8XjXkizTFa37pR8CBogcTD kvYJ3VuErTSGEtdsCHToW7nC9rtmBvd0uB9xcCgX2uXaJViU36EUP5FU8QhxaHKAWF+e gnaQ== X-Forwarded-Encrypted: i=1; AJvYcCV2wm5v+epGI+Nriae/kiFUZzQw3qgsPQ1/dmGei/qqYaEScN7l0WSx+vsipcbvy/htan0JdwQQxMXytYjeUC9FBIx9 X-Gm-Message-State: AOJu0YzMtWjGcREGn67npESAZwGbEiIO2XoouqM9bY4huyzd+HIRmQMn UmmXlftA6PMQ6gbVTTQMhq7/UHmi7bIszLy0LqRQtrM0cd5kLJ/cSx4rxQ== X-Google-Smtp-Source: AGHT+IGAoAipyWwFR+XA62e8Pd4CiqEVyErIKCPn43hk8IGkj4n9++JMfYlm58gYQwiNqTbEvU9JFA== X-Received: by 2002:a05:6402:5215:b0:57c:a7dc:b0dc with SMTP id 4fb4d7f45d1cf-58e5994e4a0mr7192294a12.4.1720269382614; Sat, 06 Jul 2024 05:36:22 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a82e.dip0.t-ipconnect.de. [79.227.168.46]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77c0dff4a5sm194219266b.27.2024.07.06.05.36.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jul 2024 05:36:21 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Sat, 06 Jul 2024 14:16:55 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x534.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:321431 Archived-At: Gerd M=C3=B6llmann writes: > Eli Zaretskii writes: > >>> Which poses the question where can we put that igc_process_messages, so >>> that it doesn't get too expensive (if it is), but is regularly enough >>> called even if not idle. >>> >>> Maybe_quit, maybe_gc, specbind? Any other ideas? >> >> maybe_gc, I'd say. But the conditions for actually calling GC will >> have to change, of course. > > Or another idea: > > We allocate bignums in igc. Every N bignum allocations, take some time to > process messages and thus finalize them. I have no idea what a good N > would be thpugh. We could try with 1000 and 0.1s, maybe. > > This also assumes that only bignums are allocated frequently plus must > be finalized. Don't know if that's true. I've pushed that with 1000 and 0.1. Let's see. Helmut, could you please see if that helps with the pi code?