Gnus development mailing list
 help / color / mirror / Atom feed
From: "Ami Fischman" <ami@fischman.org>
To: ding@gnus.org
Subject: size of gnus-undo-actions
Date: Fri, 26 Dec 2008 16:41:30 -0800	[thread overview]
Message-ID: <9aa0cfde0812261641x3c09adcbs34e3332483399b91@mail.gmail.com> (raw)

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



             reply	other threads:[~2008-12-27  0:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-27  0:41 Ami Fischman [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9aa0cfde0812261641x3c09adcbs34e3332483399b91@mail.gmail.com \
    --to=ami@fischman.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).