[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs documentation sources
From: |
Stefan Monnier |
Subject: |
Re: Emacs documentation sources |
Date: |
Fri, 28 Sep 2007 11:36:35 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) |
>> > Do you really claim that the size of DOC strings is of no concern at
>> > all?
>>
>> Since they reside in the .elc files and/or the DOC file and are only
>> ever loaded into memory temporarily when they are actually consulted,
>> they take up only disk space, not main memory. Just like the manual.
> Perhaps you should re-read th relevant sources before you make such
> assertions. What I see there is that each displayed doc string is
> kept in memory twice, and it remains in memory until the next GC.
> So, temporary or not, the doc strings do in fact occupy memory for
> more than a split second.
Absolutely negligible. If you add 10KB to a docstring (i.e. a *lot* more
text), that will add in the order of 10-20KB to the Emacs process on the
conditions that the user has looked at that docstring. I.e. it will bump
the process's size from maybe 10MB to 10.02MB. If you add 10KB to each and
every docstring ever written, then the process size will grow by about 10KB
times the number of docstring viewed in *Help*.
Absolutely negligible.
Stefan
- Re: Emacs documentation sources, (continued)
- Message not available
- Re: Emacs documentation sources, David Kastrup, 2007/09/26
- Re: Emacs documentation sources, Eli Zaretskii, 2007/09/26
- Message not available
- Re: Emacs documentation sources, David Kastrup, 2007/09/27
- Re: Emacs documentation sources, Eli Zaretskii, 2007/09/27
- Message not available
- Re: Emacs documentation sources, David Kastrup, 2007/09/27
- Re: Emacs documentation sources, Eli Zaretskii, 2007/09/28
- Message not available
- Re: Emacs documentation sources,
Stefan Monnier <=
- Message not available
- Re: Emacs documentation sources, David Kastrup, 2007/09/28
- Re: Emacs documentation sources, Eli Zaretskii, 2007/09/29
- Message not available
- Re: Emacs documentation sources, David Kastrup, 2007/09/29
- Re: Emacs documentation sources, Juanma Barranquero, 2007/09/29
- Message not available
- Re: Emacs documentation sources, Stefan Monnier, 2007/09/28