Gnus development mailing list
 help / color / mirror / Atom feed
* Slow IMAP startup
@ 2003-07-12 19:01 Nevin Kapur
  2003-07-12 20:15 ` Kai Großjohann
  0 siblings, 1 reply; 4+ messages in thread
From: Nevin Kapur @ 2003-07-12 19:01 UTC (permalink / raw)


On my IMAP server (running U. Washington's IMAP 2001a), I have about
250 groups that are stored under the hierarchy mail/.  Consequently I
have as one of the entries in nnimap-list-pattern mail/*.  (I cannot
use mail/% as the subdirectories are created on the fly.)

I've noticed that Gnus takes an inordinately long time to start up.
In the minibuffer I see the message "Listing subscribed groups on..."
and I have to wait for about 3 to 4 minutes.

Is this behavior expected?  (Other IMAP clients are noticeably faster
on startup.)

-N




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

* Re: Slow IMAP startup
  2003-07-12 19:01 Slow IMAP startup Nevin Kapur
@ 2003-07-12 20:15 ` Kai Großjohann
  2003-07-12 21:56   ` [PATCH] " Nevin Kapur
  0 siblings, 1 reply; 4+ messages in thread
From: Kai Großjohann @ 2003-07-12 20:15 UTC (permalink / raw)


Nevin Kapur <kapur@mts.jhu.edu> writes:

> I've noticed that Gnus takes an inordinately long time to start up.
> In the minibuffer I see the message "Listing subscribed groups on..."
> and I have to wait for about 3 to 4 minutes.

See variable nnimap-request-list-method.  Does it help?
-- 
~/.signature



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

* [PATCH] Re: Slow IMAP startup
  2003-07-12 20:15 ` Kai Großjohann
@ 2003-07-12 21:56   ` Nevin Kapur
  2003-07-13  2:33     ` Simon Josefsson
  0 siblings, 1 reply; 4+ messages in thread
From: Nevin Kapur @ 2003-07-12 21:56 UTC (permalink / raw)


kai.grossjohann@gmx.net (Kai Großjohann) writes:

> Nevin Kapur <kapur@mts.jhu.edu> writes:
>
>> I've noticed that Gnus takes an inordinately long time to start up.
>> In the minibuffer I see the message "Listing subscribed groups on..."
>> and I have to wait for about 3 to 4 minutes.
>
> See variable nnimap-request-list-method.  Does it help?

Not in any meaningful way.  (But read on for the full story.)

I set about trying to identify the bottleneck.  Using elp and edebug,
I think I identified a bug in nnimap-request-newgroups.  While looping
over nnimap-list-pattern it ignores the pattern, resulting in each of
your subscribed mailboxes being accessed once for each pattern.  The
following patch fixes this and has cut the startup time for me by
about a fourth.  Would someone review it and commit it, please?

2003-07-12  Nevin Kapur  <kapur@mts.jhu.edu>

	* nnimap.el (nnimap-request-newgroups): Use the pattern in
	nnimap-list-pattern instead of "*".


Index: lisp/nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 6.68
diff -u -r6.68 nnimap.el
--- lisp/nnimap.el	17 Jun 2003 22:32:02 -0000	6.68
+++ lisp/nnimap.el	12 Jul 2003 22:04:14 -0000
@@ -1326,7 +1326,7 @@
       (nnimap-before-find-minmax-bugworkaround)
       (dolist (pattern (nnimap-pattern-to-list-arguments
 			nnimap-list-pattern))
-	(dolist (mbx (imap-mailbox-lsub "*" (car pattern) nil
+	(dolist (mbx (imap-mailbox-lsub (cdr pattern) (car pattern) nil
 					nnimap-server-buffer))
 	  (or (catch 'found
 		(dolist (mailbox (imap-mailbox-get 'list-flags mbx
        
-Nevin




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

* Re: [PATCH] Re: Slow IMAP startup
  2003-07-12 21:56   ` [PATCH] " Nevin Kapur
@ 2003-07-13  2:33     ` Simon Josefsson
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Josefsson @ 2003-07-13  2:33 UTC (permalink / raw)


Nevin Kapur <kapur@mts.jhu.edu> writes:

> I set about trying to identify the bottleneck.  Using elp and edebug,
> I think I identified a bug in nnimap-request-newgroups.  While looping
> over nnimap-list-pattern it ignores the pattern, resulting in each of
> your subscribed mailboxes being accessed once for each pattern.  The
> following patch fixes this and has cut the startup time for me by
> about a fourth.  Would someone review it and commit it, please?

Added, thanks.




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

end of thread, other threads:[~2003-07-13  2:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-12 19:01 Slow IMAP startup Nevin Kapur
2003-07-12 20:15 ` Kai Großjohann
2003-07-12 21:56   ` [PATCH] " Nevin Kapur
2003-07-13  2:33     ` Simon Josefsson

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