Gnus development mailing list
 help / color / mirror / Atom feed
* size of gnus-undo-actions
@ 2008-12-27  0:41 Ami Fischman
  2010-08-30 18:18 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Ami Fischman @ 2008-12-27  0:41 UTC (permalink / raw)
  To: ding

What is considered a reasonable size for gnus-undo-actions
(buffer-local variable in *Group*)?
For a session with uptime 6d18h I've got a 237-element
gnus-undo-actions value that takes 12MB to prin1, or almost 50KB per
recorded action.  Quitting gnus frees up over 1.3MB of lisp heap
(according to memory-usage.el).  Does gnus-undo-actions really need to
be so large?

FWIW, I used this to get the above numbers:

(save-excursion
  (set-buffer "*Group*")
  (let ((len (length gnus-undo-actions))
        (size (length (prin1-to-string gnus-undo-actions)))
        (limit gnus-undo-limit))
    (message "Length:%d, size:%d, limit:%d"
             len size limit)))

Which printed:
Length:237, size:12037804, limit:2000

Cheers,
-a



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-30 18:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-27  0:41 size of gnus-undo-actions Ami Fischman
2010-08-30 18:18 ` Lars Magne Ingebrigtsen
2010-08-30 18:28   ` Leo
2010-08-30 18:39     ` Lars Magne Ingebrigtsen
2010-08-30 18:43       ` Leo
2010-08-30 18:52   ` Štěpán Němec

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 NNTP newsgroup(s).