From unknown Tue Jun 17 20:09:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#917 <917@debbugs.gnu.org> To: bug#917 <917@debbugs.gnu.org> Subject: Status: Too heavy consing in MULE file saving? Reply-To: bug#917 <917@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:09:36 +0000 retitle 917 Too heavy consing in MULE file saving? reassign 917 emacs submitter 917 rms@gnu.org severity 917 normal thanks From rms@gnu.org Sun Sep 7 10:41:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.3 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 17:41:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87HfiRR004018 for ; Sun, 7 Sep 2008 10:41:45 -0700 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KcOEy-00060n-EG; Sun, 07 Sep 2008 13:40:00 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: emacs-pretest-bug@gnu.org Subject: Too heavy consing in MULE file saving? Reply-to: rms@gnu.org Message-Id: Date: Sun, 07 Sep 2008 13:40:00 -0400 I have gc-cons-threshold at 400000, which is the default. In Rmail, if I type d u C-x C-s, it causes a GC at the end of saving. I can do this over and over and it GCs every time. I think this indicates a bug; namely, that something is doing too much consing. My Rmail file is around 10 meg, and has 471 messages. But I don't see why that should matter for C-x C-s. Just to explore, I visited another 10meg file in Fundamental mode and got the same behavior. I went to the end and type 1 DEL C-x C-s. It gc's each time. Then I tried visiting it with find-file-literally. That way, I could type 1 DEL C-x C-s and it would save without gc. So I think something concerned with Mule is doing too much consing. From eliz@gnu.org Sun Sep 7 12:02:36 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.8 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 19:02:36 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m87J2WEd031854 for ; Sun, 7 Sep 2008 12:02:33 -0700 Received: from mx10.gnu.org ([199.232.76.166]:41143) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KcPVA-0000W1-Gm for emacs-pretest-bug@gnu.org; Sun, 07 Sep 2008 15:00:48 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KcPWl-0007n1-Jg for emacs-pretest-bug@gnu.org; Sun, 07 Sep 2008 15:02:31 -0400 Received: from mtaout5.012.net.il ([84.95.2.13]:62975) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcPWl-0007mx-7q; Sun, 07 Sep 2008 15:02:27 -0400 Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K6U001VMA76TKB2@i_mtaout5.012.net.il>; Sun, 07 Sep 2008 22:01:55 +0300 (IDT) Date: Sun, 07 Sep 2008 22:01:14 +0300 From: Eli Zaretskii Subject: Re: bug#917: Too heavy consing in MULE file saving? In-reply-to: X-012-Sender: halo1@inter.net.il To: rms@gnu.org, 917@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org Reply-to: Eli Zaretskii Message-id: References: X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-CrossAssassin-Score: 2 > From: "Richard M. Stallman" > Date: Sun, 07 Sep 2008 13:40:00 -0400 > Cc: > > My Rmail file is around 10 meg, and has 471 messages. > But I don't see why that should matter for C-x C-s. > > Just to explore, I visited another 10meg file in Fundamental mode > and got the same behavior. I went to the end and type 1 DEL C-x C-s. > It gc's each time. > > Then I tried visiting it with find-file-literally. > That way, I could type 1 DEL C-x C-s and it would save without gc. > > So I think something concerned with Mule is doing too much consing. I'm not surprised: saving a file visited non-literally causes its contents to be encoded, which generally means we wipe out the text and replace it with its encoded representation. That this conses _a_lot_, especially for large files, does not come as a surprise to me. Perhaps I'm missing something, though. From rms@gnu.org Mon Sep 8 02:24:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.3 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Sep 2008 09:24:17 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m889OE6b009563 for ; Mon, 8 Sep 2008 02:24:15 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kccyj-0007Yj-GW for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:24:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kccyi-0007YG-In for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:24:12 -0400 Received: from [199.232.76.173] (port=45088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kccyi-0007YB-BV for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:24:12 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:34136) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kccyi-0002V5-BG for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:24:12 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kccx1-0004JF-Ge; Mon, 08 Sep 2008 05:22:27 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: Eli Zaretskii , 917@debbugs.gnu.org CC: 917@debbugs.gnu.org, bug-submit-list@donarmstrong.com, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org In-reply-to: (message from Eli Zaretskii on Sun, 07 Sep 2008 22:01:14 +0300) Subject: Re: bug#917: Too heavy consing in MULE file saving? Reply-to: rms@gnu.org References: Message-Id: Date: Mon, 08 Sep 2008 05:22:27 -0400 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) I'm not surprised: saving a file visited non-literally causes its contents to be encoded, which generally means we wipe out the text and replace it with its encoded representation. That this conses _a_lot_, especially for large files, does not come as a surprise to me. It seems to be a recent change, so I think it is worth investigating whether something just increased the amount of consing done by encoding. It would be worth optimizing this. From rgm@gnu.org Thu Sep 11 09:08:20 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.5 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 11 Sep 2008 16:08:20 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8BG8HrU008894 for ; Thu, 11 Sep 2008 09:08:18 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kdoge-0001lG-94; Thu, 11 Sep 2008 12:06:28 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18633.16900.218396.784362@fencepost.gnu.org> Date: Thu, 11 Sep 2008 12:06:28 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: opUlc~qZU[lsdlW+Q_AA]z7{B(AwIhtHnMV50de3977^s`;12:M|_$CMP5rG;Q2_@-HJkM X-Debbugs-No-Ack: yes reassign 959 emacs,cc-mode forcemerge 913 959 merge 917 960 961 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 14:23:37 2010 Received: (at control) by debbugs.gnu.org; 24 Jun 2010 18:23:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORr5N-00051L-8v for submit@debbugs.gnu.org; Thu, 24 Jun 2010 14:23:37 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORr5K-00051G-K0 for control@debbugs.gnu.org; Thu, 24 Jun 2010 14:23:35 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o5OINUI2013527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 24 Jun 2010 14:23:30 -0400 Received: by furry (Postfix, from userid 1000) id 5BF4B16D416; Thu, 24 Jun 2010 20:23:29 +0200 (CEST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 1382 Date: Thu, 24 Jun 2010 14:23:29 -0400 Message-ID: <87r5jw5ly6.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) severity 135 minor tags 710 + moreinfo unreproducible close 756 tags 844 + moreinfo unreproducible close 917 close 1000 tags 1125 + moreinfo unreproducible close 1159 severity 1238 wishlist close 1247 close 1381 close 1382 tags 1708 + moreinfo unreproducible close 1993 severity 2024 wishlist close 2236 severity 2299 wishlist tags 2394 + moreinfo unreproducible severity 2507 minor close 2583 tags 2690 + moreinfo unreproducible tags 2812 + moreinfo unreproducible tags 2843 + moreinfo unreproducible tags 2870 + moreinfo unreproducible tags 2877 + moreinfo unreproducible close 3032 close 3273 close 3349 close 4046 close 4358 close 4591 close 4656 thanks From unknown Tue Jun 17 20:09:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Jul 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator