Gnus development mailing list
 help / color / mirror / Atom feed
* Gnus & garbage collection
@ 2002-01-12  4:01 Jesper Harder
  2002-01-12 11:43 ` Simon Josefsson
  0 siblings, 1 reply; 5+ messages in thread
From: Jesper Harder @ 2002-01-12  4:01 UTC (permalink / raw)


Hi!

I tried to set `garbage-collection-messages' to t, and I noticed that
Emacs collects garbage like crazy when performing some Gnus actions.

Here are some timing results that show how it affects performance when
entering a large summary buffer and a server buffer.

This is with the default value of `gc-cons-threshold' (400,000 in Emacs):

  Function Name            Call Count  Elapsed Time 
  =======================  ==========  ============ 
  gnus-topic-select-group  1           94.222058    
  gnus-server-read-server  1           50.094491    

And this is with `gc-cons-threshold' increased to 4,000,000:

  Function Name            Call Count  Elapsed Time 
  =======================  ==========  ============ 
  gnus-topic-select-group  1           54.852086
  gnus-server-read-server  1           27.06671

So, with the default value nearly half of the time is spent in the
garbage collector.

I don't know if it's worth doing something about it -- maybe parts of
the code that are likely to generate large amounts of lisp data should
have `gc-cons-threshold' increased, or maybe people should just increase
it themself if they want a faster Gnus (and memory permits it).

-- 
Cheers,
Jesper Harder




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

end of thread, other threads:[~2002-01-12 22:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-12  4:01 Gnus & garbage collection Jesper Harder
2002-01-12 11:43 ` Simon Josefsson
2002-01-12 17:50   ` Jesper Harder
2002-01-12 22:25     ` Simon Josefsson
2002-01-12 19:54   ` Romain FRANCOISE

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).