From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Indentation and gc Date: Sat, 11 Mar 2023 13:38:54 +0000 Message-ID: <875yb7wgpd.fsf@localhost> References: <20230310110747.4hytasakomvdyf7i.ref@Ergus> <20230310110747.4hytasakomvdyf7i@Ergus> <87a60k657y.fsf@web.de> <838rg4zmg9.fsf@gnu.org> <87ttyrwobj.fsf@localhost> <20230311111730.fatow74xnbel7t3f@Ergus> <83o7ozwju8.fsf@gnu.org> <87jzznwjh3.fsf@localhost> <83jzznwjeh.fsf@gnu.org> <87fsabwirg.fsf@localhost> <83h6urwhu0.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="24227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, arne_bab@web.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 11 14:38:07 2023 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 1pazQE-00066n-L6 for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Mar 2023 14:38:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pazPg-0002g6-Kc; Sat, 11 Mar 2023 08:37:32 -0500 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 1pazPe-0002f5-78 for emacs-devel@gnu.org; Sat, 11 Mar 2023 08:37:30 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pazPc-0007oc-A2 for emacs-devel@gnu.org; Sat, 11 Mar 2023 08:37:29 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 902AD24019B for ; Sat, 11 Mar 2023 14:37:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678541846; bh=neJniD6aYVBqRGPsG5oqEo0WV6HY00kQOL/uHkYL7jQ=; h=From:To:Cc:Subject:Date:From; b=lQ/DE93iE+F6B7/6S4UO77+MWlNFjm++y9dEzNnv1NFPrOPMtlqVr2gc8iAl2dhkC rOmDdFoeLKeq0fPvEY1tUNcgJiGa47BhGTR4JoRoQYL/2o+/T/1Hvg5gHkFeDxFnX2 UUZUGUtgcyzRecP+Ef2fi49/bTWdwmE9759Ilh3P8NjZICAjUu42+qYFGofCSz+Gwj 3nwRTTruxhBgOONEq0rNjJKISZfoDYQ3lP47DDQcsv6NSK3SgWH+BH1EUwPg6xExb9 QdyNlsRemMOPeakHsJotcPOx8306kzroQZpLuC2vB+nrcgjulVJW6Z3ijiIoRLIFGX 9uypsKoMFPeJQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PYkVs6Th8z9rxH; Sat, 11 Mar 2023 14:37:23 +0100 (CET) In-Reply-To: <83h6urwhu0.fsf@gnu.org> Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:304310 Archived-At: Eli Zaretskii writes: >> > And I take every opportunity to tell people not to do. >>=20 >> I am afraid that it is not very helpful. > > I'm sorry if I'm unhelpful, but did you ever read the posts that I > wrote on this issue? E.g., here: > > https://old.reddit.com/r/emacs/comments/bg85qm/garbage_collector_magic_= hack/ Not really. I am not following reddit so much closely to I notice all the comments buried in various posts. What about expanding the relevant paragraph in the manual with examples when increasing the threshold too much is dangerous? The initial threshold value is =E2=80=98GC_DEFAULT_THRESHOLD=E2=80=99,= defined in =E2=80=98alloc.c=E2=80=99. Since it=E2=80=99s defined in =E2=80=98wor= d_size=E2=80=99 units, the value is 400,000 for the default 32-bit configuration and 800,000 for the 64-bit one. If you specify a larger value, garbage collection will happen less often. This reduces the amount of time spent garbage collecting, but increases total memory use. You may want to do this when running a program that creates lots of Lisp data. However, we recommend against increasing the threshold for prolonged periods of time, and advise that you never set it higher than needed for the program to run in reasonable time. Using thresholds higher than necessary could potentially cause system-wide memory pressure, and should therefore be avoided. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at