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: Indentation and gc Date: Fri, 10 Mar 2023 16:52:29 +0200 Message-ID: <83a60kzmj6.fsf@gnu.org> References: <20230310110747.4hytasakomvdyf7i.ref@Ergus> <20230310110747.4hytasakomvdyf7i@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7293"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 10 15:53:11 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 1pae7K-0001ab-Tf for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Mar 2023 15:53:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pae6y-0007Iu-R0; Fri, 10 Mar 2023 09:52:48 -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 1pae6y-0007IS-5C for emacs-devel@gnu.org; Fri, 10 Mar 2023 09:52:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pae6x-0004tz-Qz; Fri, 10 Mar 2023 09:52:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qGjhmY9PPC7dKZ9A1+0f52gxCyJAAYUxdr+pr3+3yEg=; b=OK8f4CGYX0JL QPqulFu7T4Z0wn3T1FLyacCvvKe84uPDV25SB0Q8zmUiobZSlsKuuBvM4TmnMh8sCnP/OVQhtWMae 363rSgUrTa0saCvma4nXsGxR3cZQKM4dh4uEJYsh7lcViBkNhrsmKfzBpTtsofmUFYmBCgOCvJaae Q73fb2cIrwQmY1+AhUTtNtRNMDOX/cyobwJYfUZFNuikxgtnmQBkmbTjKjxQxY1uVecXxbFeeCx2D tdTXbMVnGdTr7cWqOlFdapISzjj3/4g+CpS8emFo//KLnCdsI9IuC4lXSdZVqqdchUgBMdw/8lhKq soONF7LtwKmIpTNkbKLq6g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pae6x-00031p-AO; Fri, 10 Mar 2023 09:52:47 -0500 In-Reply-To: <20230310110747.4hytasakomvdyf7i@Ergus> (message from Ergus on Fri, 10 Mar 2023 12:07:47 +0100) 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:304248 Archived-At: > Date: Fri, 10 Mar 2023 12:07:47 +0100 > From: Ergus > > Just today I enabled the garbage-collection-messages and I found that > indenting the buffer with `C-x h ` in just ~150 C++ lines I get the > garbage-collection message printed about 4 or 5 times before the > indentation finishes. > > So, two questions: > > 1) Is this intended? if so, what's the reason? the indentation code is > forcing gc or is it generating too much garbage? The latter. > 2) IF it doesn't impact performance... Is it possible somehow to improve > the gc message to have more useful information; or at least; to control > the no-log in order to have some outputs in the *Message* buffer? How will a more detailed GC message help?