Gnus development mailing list
 help / color / mirror / Atom feed
* nnmaildir: Performance in nnmaildir-request-update-info
@ 2007-12-01 22:29 Christian Plate
  2007-12-02  0:32 ` Paul Jarc
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Plate @ 2007-12-01 22:29 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

Hello,

I found a performance problem in nnmaildir and think i solved it.

Problem: I have various maildirs with >9000 mails. If i read a new
mail, quit the group and then hit "gnus-group-get-new-news" in the
Groups-buffer, it takes 30s till i get an updated Groups-buffer.

Profiling shows that nnmaildir-request-update-info is to
blame. gnus-add-to-range is called for every single article which is
found in the markdirs.

I changed the implementation to collect all article numbers in a list
and then call gnus-add-to-range only once with that list of article
numbers.

This causes a huge performance gain on my machine. For my big
mailboxes now the time for gnus-group-get-new-news is only 0.3s.

Unfortunately I don't have a working installation of latest gnus
sources. I used:
GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.6.4) of 2007-06-09 on rhada

Therefore I attached a tar file containing my patch and two dirs: "old"
contains the version i based my work on. "new" contains my patch.

Please take a look at it. For me this delay was a major flaw in my
daily work with nnmaildir. It would be great if a change like this
could be integrated into gnus/emacs.

Thanks for your attention,
  Christian


[-- Attachment #2: patch-performance-nnmaildir-request-update-info.tar.gz --]
[-- Type: application/octet-stream, Size: 27508 bytes --]

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

end of thread, other threads:[~2007-12-06  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-01 22:29 nnmaildir: Performance in nnmaildir-request-update-info Christian Plate
2007-12-02  0:32 ` Paul Jarc
2007-12-02 11:51   ` Christian Plate
2007-12-06  5:51     ` Paul Jarc

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