* bug#861: Strange interaction of cursor movement and post-command-hook?
[not found] <x5bs2wsk5b.fsf@lola.goethe.zz>
@ 2008-09-02 1:09 ` Richard M. Stallman
0 siblings, 0 replies; only message in thread
From: Richard M. Stallman @ 2008-09-02 1:09 UTC (permalink / raw)
To: David Kastrup; +Cc: emacs-pretest-bug
Internally, the two strings share most of their state.
The total amount of memory used is (roughly speaking)
the memory for saved_undo_point plus the memory
for just the string "foobar".
That is what I figured. What I am worried about is the "roughly".
There can be a lot of undo data, which is why there are special
features to control how much is saved. So the efficiency of storing
it is very important.
Note also that undo data covers more than just buffer contents.
(In reality, it's a little bit fancier than what is
described above in order to put an upper bound on
the amount of fragmentation of strings in memory.)
Those measures, which are clearly necessary, could impact the
efficiency of storing hundreds of past snapshots. This might cause
the amount of duplicated buffer text to increase, even drastically.
Or it might not.
Making this change to the buffer representation would not _require_
changing the undo data structure and mechanism. That one area of the
C code is fairly modular and independent of buffer internals.
It might hardly need any change. Other areas could take more work.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-02 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <x5bs2wsk5b.fsf@lola.goethe.zz>
2008-09-02 1:09 ` bug#861: Strange interaction of cursor movement and post-command-hook? Richard M. Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).