From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Garbage collector: is 800kb a good default? Date: Thu, 09 Apr 2020 17:23:24 +0300 Message-ID: <83h7xsoi03.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96333"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dim1212k@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 09 16:24:18 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 1jMY6L-000Oyq-4R for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Apr 2020 16:24:17 +0200 Original-Received: from localhost ([::1]:50700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMY6K-0000iq-84 for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Apr 2020 10:24:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39601) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMY5p-0000HL-Oo for emacs-devel@gnu.org; Thu, 09 Apr 2020 10:23:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jMY5p-0004TJ-HW; Thu, 09 Apr 2020 10:23:45 -0400 Original-Received: from [176.228.60.248] (port=2469 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jMY5o-0006nS-Mr; Thu, 09 Apr 2020 10:23:45 -0400 In-Reply-To: (message from Stefan Monnier on Thu, 09 Apr 2020 09:47:38 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:246714 Archived-At: > From: Stefan Monnier > Date: Thu, 09 Apr 2020 09:47:38 -0400 > Cc: emacs-devel > > What you're pointing out is that from the user's point of view, a GC > during idle time is free (so it can occur frequently) and also that > a GC during non-idle time can delay redisplay, so (ignoring all > other impacts of GC) we should refrain from running GC while > non-idle and trigger GC everything we're idle. Let's not forget that running GC while Emacs is idle will make Emacs less responsive if the user starts typing while GC is in progress, specially if gc-cons-threshold is high. So it isn't entirely "free". Also, we already try running GC each time Emacs becomes idle.