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: User GC customizations Date: Thu, 04 Jul 2024 16:38:26 +0000 Message-ID: References: <87v81pbgzi.fsf@localhost> <87y16khvhy.fsf@localhost> <87frspqwhr.fsf@localhost> <87tth5pdqc.fsf@localhost> <86sewp8djd.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="841"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Gerd_M=C3=B6llmann?= , yantar92@posteo.net, emacs-devel@gnu.org, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 04 19:49:39 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 1sPQaQ-000AWx-V3 for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jul 2024 19:49:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPQZX-0006TU-Lp; Thu, 04 Jul 2024 13:48:43 -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 1sPPTl-0004Ut-LU for emacs-devel@gnu.org; Thu, 04 Jul 2024 12:38:42 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPPTf-0006iJ-2W for emacs-devel@gnu.org; Thu, 04 Jul 2024 12:38:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1720111111; x=1720370311; bh=7tPjkBjNMLIrEYSqygNQnBr1toUYL+sDka65XbRricM=; 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=THcSiLVjzdnWPxmLISd+whN/zZeBXOJ8Aetx2H2HOBu28TsChp6+bgT46BLBoq3h9 TJT8bTZF9pygvC176ap88d2ctiRJk/I/cwLKfnmfCO/5eJ1IOH1CPiyr9ROrF2ax+8 Va+ekPC3rpomHBdaoHxrsOK52wlHNqtx+qySv4l77VHLw5cfJf7U7VYpL392z9cgq0 2DtIVzCooY5ssXJ2wQqbbzHR6ESS7/sP9X3hSJADyMlhUoRT1IgyeobORRX8UpqDIG 7kH9kBpxzFsm63QGGcqUkt5uasaPhFK1feq5Auu1PfOJC//TnKylsZKe+cBv1N+KZm YdSBOx0rEMj9g== In-Reply-To: <86sewp8djd.fsf@gnu.org> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 50b3ad81177470b246f8f6825e85619a30843020 Received-SPF: pass client-ip=185.70.43.16; envelope-from=pipcet@protonmail.com; helo=mail-4316.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: Thu, 04 Jul 2024 13:48:41 -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:321346 Archived-At: On Thursday, July 4th, 2024 at 13:58, Eli Zaretskii wrote: > =E2=80=98interval=E2=80=99 is the time, in seconds, the MPS is permitted = to take. > It must not be negative, but may be =E2=80=980.0=E2=80=99. > [...] > mps_arena_step() allows the client program to make use > of idle time to do some garbage collection, for example when it is > waiting for interactive input. The MPS makes every effort to > return from this function within =E2=80=98interval=E2=80=99 seconds, but = cannot > guarantee to do so, as it may need to call your own scanning code. > It uses =E2=80=98multiplier=E2=80=99 to decide whether to commence long-d= uration > operations that consume CPU (such as a full collection): it will > only start such an operation if it is expected to be completed > within =E2=80=98multiplier * interval=E2=80=99 seconds. Why are we passing 0 for "multiplier", then? Should that be 1? Pip