GNU bug report logs - #917
Too heavy consing in MULE file saving?

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Sun, 7 Sep 2008 17:50:03 UTC

Severity: normal

Merged with 960, 961

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: rms <at> gnu.org, 917 <at> debbugs.gnu.org
Cc: emacs-pretest-bug <at> gnu.org
Subject: bug#917: Too heavy consing in MULE file saving?
Date: Sun, 07 Sep 2008 22:01:14 +0300
> From: "Richard M. Stallman" <rms <at> gnu.org>
> 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.




This bug report was last modified 14 years and 333 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.