From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v2 2/3] Add garbage-collect-maybe function Date: Sun, 22 Nov 2020 20:14:12 +0200 Message-ID: <83tuthw96z.fsf@gnu.org> References: <87h7pij7xo.fsf@catern.com> <20201122050829.9097-2-sbaugh@catern.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31799"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Spencer Baugh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 22 19:14:48 2020 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 1kgtsu-0008AX-Ul for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 19:14:48 +0100 Original-Received: from localhost ([::1]:60636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgtst-0001MG-UG for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 13:14:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgtsQ-0000vq-78 for emacs-devel@gnu.org; Sun, 22 Nov 2020 13:14:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48935) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgtsQ-0004st-0D; Sun, 22 Nov 2020 13:14:18 -0500 Original-Received: from [176.228.60.248] (port=3111 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kgtsP-00040k-Ha; Sun, 22 Nov 2020 13:14:17 -0500 In-Reply-To: <20201122050829.9097-2-sbaugh@catern.com> (message from Spencer Baugh on Sun, 22 Nov 2020 00:08:28 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:259635 Archived-At: > From: Spencer Baugh > Cc: Spencer Baugh , > Eli Zaretskii > Date: Sun, 22 Nov 2020 00:08:28 -0500 > > +DEFUN ("garbage-collect-maybe", Fgarbage_collect_maybe, > +Sgarbage_collect_maybe, 1, 1, "", > + doc: /* Call `garbage-collect' if enough allocation happened. > +FACTOR determines what "enough" means here: > +If FACTOR is a positive number N, it means to run GC if more than > +1/Nth of the allocations needed to triger automatic allocation took ^^^^^^ "trigger" The "1/Nth of the allocations needed to triger automatic allocation" part is confusing. Did you mean "1/Nth of the allocations determined by `gc-cons-threshold' and `gc-cons-percentage'"?