GNU bug report logs -
#8528
24.0.50; 32-bit Emacs with apparent 128M buffer size limit
Previous Next
Reported by: Evans Winner <ego111 <at> gmail.com>
Date: Wed, 20 Apr 2011 21:05:01 UTC
Severity: normal
Found in version 24.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 04/20/11 22:52, Eli Zaretskii wrote:
> Paul, could you please tell where do you see twice doubling of the
> file size in insert-file-contents?
I assumed that it was because the internal buffers contain an
Emacs-encoded version of the file, which could be as long as four
times the actual file size, because a single byte in the file
might expand to 4 bytes inside Emacs in some cases.
That would explain the behavior that you saw: if your file's
internal encoding was the same as the external, you wouldn't observe any
problem. The problem would be exhibited only with files containing
many characters that bloat when read into memory. However,
I didn't investigate the matter thoroughly; perhaps someone
who's more expert on how Emacs encodes things internally could
speak up.
This bug report was last modified 14 years and 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.