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:54:14 +0200 Message-ID: <838rg4zmg9.fsf@gnu.org> References: <20230310110747.4hytasakomvdyf7i.ref@Ergus> <20230310110747.4hytasakomvdyf7i@Ergus> <87a60k657y.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18064"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, emacs-devel@gnu.org To: "Dr. Arne Babenhauserheide" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 10 15:54:58 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 1pae93-0004SG-Qb for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Mar 2023 15:54:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pae8g-0000kD-CH; Fri, 10 Mar 2023 09:54:34 -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 1pae8e-0000jz-3s for emacs-devel@gnu.org; Fri, 10 Mar 2023 09:54:32 -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 1pae8d-00058g-JR; Fri, 10 Mar 2023 09:54:31 -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=ObfR5JBECxPdcM2y4PoIz8nFnpdjMvAaNHIloplinvM=; b=bPU+q2LmQIDY iYO+/zMooZNrmLY1rtURNSmyCcPRYgA4T0SlNfbtb/6ui/pVN/dHq9YyWfFRdKPiur4TR7EBHHE+B SpwesoxmFcwM+B2rq6TOqmY8V+FQmFxVxdwTAqHlvRm/IbE/ErDwWT3GCtrNshPk7kB+WitotOv1b b1YbdwuWgzuXmtl+rUL+2tY7FJPMCul/WDYGGdfvDWhC2xP9IrPFyto8zl1ElETY545ufFPhbHdJy uzUZ8eN4frUrsjzVq86yHGzf7DOKH4OC4b6hgu3hCdh7ro1y4xVeBQkzC5IoGFRn5jZyvYtBosaCw /OFTX+q4Qd36692PeXoyGg==; 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 1pae8c-0003Ab-Ep; Fri, 10 Mar 2023 09:54:30 -0500 In-Reply-To: <87a60k657y.fsf@web.de> (arne_bab@web.de) 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:304249 Archived-At: > From: "Dr. Arne Babenhauserheide" > Cc: emacs-devel@gnu.org > Date: Fri, 10 Mar 2023 15:36:06 +0100 > > I have these set in my .emacs.d/init.el > > ;; at the start: > > ;; Make startup faster by reducing the frequency of garbage > ;; collection. The default is 800 kilobytes. Measured in bytes. > (setq gc-cons-threshold (* 100 1024 1024)) > > > ;; at the end: > > ;; Make gc pauses faster by decreasing the threshold again (from the increased initial). > (setq gc-cons-threshold (* 20 1024 1024)) > ;; original value: 800 000 > > ;; speed up reading from external processes > (setq read-process-output-max (* 1024 1024)) ;; 1mb This can only be done around specific portions of code known in advance to be long and GC-intensive. I don't think this kind of technique can be used in the situation described by the OP.