From unknown Fri Jun 20 07:22:29 2025 X-Loop: don@donarmstrong.com Subject: bug#917: Too heavy consing in MULE file saving? Reply-To: rms@gnu.org, 917@debbugs.gnu.org Resent-From: "Richard M. Stallman" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Sep 2008 17:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 917 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12208093074024 (code B ref -1); Sun, 07 Sep 2008 17:50:03 +0000 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 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 unknown Fri Jun 20 07:22:29 2025 X-Loop: don@donarmstrong.com Subject: bug#917: Too heavy consing in MULE file saving? Reply-To: Eli Zaretskii , 917@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 07 Sep 2008 19:10:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 917 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122081415631865 (code B ref -1); Sun, 07 Sep 2008 19:10:05 +0000 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 In-reply-to: X-012-Sender: halo1@inter.net.il To: rms@gnu.org, 917@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org 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 unknown Fri Jun 20 07:22:29 2025 X-Loop: don@donarmstrong.com Subject: bug#917: Too heavy consing in MULE file saving? Reply-To: rms@gnu.org, 917@debbugs.gnu.org Resent-From: "Richard M. Stallman" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 08 Sep 2008 09:30:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 917 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12208658579573 (code B ref -1); Mon, 08 Sep 2008 09:30:02 +0000 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) 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 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