* 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
* Re: size of gnus-undo-actions
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:52 ` Štěpán Němec
0 siblings, 2 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-30 18:18 UTC (permalink / raw)
To: ding
"Ami Fischman" <ami@fischman.org> writes:
> Does gnus-undo-actions really need to be so large?
I've now limited it to 100 elements.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: size of gnus-undo-actions
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:52 ` Štěpán Němec
1 sibling, 1 reply; 6+ messages in thread
From: Leo @ 2010-08-30 18:28 UTC (permalink / raw)
To: ding
On 2010-08-30 19:18 +0100, Lars Magne Ingebrigtsen wrote:
> "Ami Fischman" <ami@fischman.org> writes:
>
>> Does gnus-undo-actions really need to be so large?
>
> I've now limited it to 100 elements.
Isn't changing the default value of gnus-undo-limit enough?
Leo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: size of gnus-undo-actions
2010-08-30 18:28 ` Leo
@ 2010-08-30 18:39 ` Lars Magne Ingebrigtsen
2010-08-30 18:43 ` Leo
0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-08-30 18:39 UTC (permalink / raw)
To: ding
Leo <sdl.web@gmail.com> writes:
> Isn't changing the default value of gnus-undo-limit enough?
I didn't notice that one. Then the user can just lower it themselves if
they have too little RAM.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: size of gnus-undo-actions
2010-08-30 18:39 ` Lars Magne Ingebrigtsen
@ 2010-08-30 18:43 ` Leo
0 siblings, 0 replies; 6+ messages in thread
From: Leo @ 2010-08-30 18:43 UTC (permalink / raw)
To: ding
On 2010-08-30 19:39 +0100, Lars Magne Ingebrigtsen wrote:
>> Isn't changing the default value of gnus-undo-limit enough?
>
> I didn't notice that one. Then the user can just lower it themselves if
> they have too little RAM.
Maybe it should default to 100 and if users have more RAM they can
increase it. BTW, I just noticed gnus-undo today.
Leo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: size of gnus-undo-actions
2010-08-30 18:18 ` Lars Magne Ingebrigtsen
2010-08-30 18:28 ` Leo
@ 2010-08-30 18:52 ` Štěpán Němec
1 sibling, 0 replies; 6+ messages in thread
From: Štěpán Němec @ 2010-08-30 18:52 UTC (permalink / raw)
To: ding
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> "Ami Fischman" <ami@fischman.org> writes:
>
>> Does gnus-undo-actions really need to be so large?
>
> I've now limited it to 100 elements.
Hey, this is Gnus, there should be an option for that!
^ 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).