GNU bug report logs -
#68200
File local byte-compile-dynamic-docstrings:nil ignored?
Previous Next
Full log
View this message in rfc822 format
Hello, Eli.
On Tue, Jan 09, 2024 at 14:36:02 +0200, Eli Zaretskii wrote:
> > Date: Mon, 8 Jan 2024 21:22:16 +0000
> > Cc: Eli Zaretskii <eliz <at> gnu.org>,
> > Gerd Möllmann <gerd.moellmann <at> gmail.com>,
> > 68200 <at> debbugs.gnu.org, acm <at> muc.de
> > From: Alan Mackenzie <acm <at> muc.de>
> >
> > In an age when a computer with 1 GB RAM is regarded as small indeed, why
> > are we so concerned about the, at most, few hundred bytes occupied by
> > each doc string?
> Because RAM is always at premium, and because these things add up.
> > Even if certain libraries were given adequate doc
> > strings, that still wouldn't swell the occupied storage to more than...
> > Well, I think there are around 40,000 defuns (etc.) in Emacs (I did scan
> > the source files for this at one time). If each doc string were on
> > average 1024 bytes, that would come to around 40 MB. That's negligible
> > these days, surely.
> No, 40MB is far from being negligible.
It's not negligible compared with the rest of Emacs, but is less than ¼%
of the RAM in a machine with 16GB.
> > Eli, what would you say to changing the default of the custom variable
> > byte-compile-dynamic-docstrings to nil?
> Why would that be useful? to hide bugs in code that doesn't work when
> the variable is non-nil?
No, the bug has been fixed. But, as Michael pointed out, lots of things
are being done with doc strings now which weren't being done when the
dynamic doc strings were introduced. Indeed, they were surely a
workaround for limited RAM in machines a very long time ago.
Now that we're doing more with doc strings, the inconvenience of not
getting a doc string after editing a source file might well outweigh the
relatively small amount of RAM that these doc strings need.
Hence the suggestion to change the default.
[ .... ]
> Thanks.
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 1 year and 186 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.