On 04.10.2011 18:06, A.L.E.C wrote:
On 2011-10-04 17:37, Raoul Bhatia [IPAX] wrote:
[29-Sep-2011 10:48:36 +0200]: [9421] C: A0003 LIST "" "*" [29-Sep-2011 10:48:36 +0200]: [9421] S: * LIST (\HasChildren) "." "kunden"
... (2000 folders with >200.000 emails, ~1sec)
[29-Sep-2011 10:48:37 +0200]: [9421] S: A0003 OK List completed.
(8 seconds between OK List and LIST Subscribed)
Here Roundcube sorts the list in rcube_imap::_sort_mailbox_list(). Maybe the sorting procedure could be improved.
Most time is spent in rcube_imap::_rsort(), but I didn't found a way to speed it up.
[29-Sep-2011 10:48:45 +0200]: [9421] C: A0004 LIST (SUBSCRIBED) "" "*"
... (2000 folders with >200.000 emails, ~1sec)
[29-Sep-2011 10:48:46 +0200]: [9421] S: A0004 OK List completed. [29-Sep-2011 10:48:56 +0200]: [9421] C: A0005 LOGOUT
(~10 seconds between OK List and logout)
Here it also does sorting. I think we could skip the sorting here. I'll work on a patch.
Done in r5309. It should save a few seconds here.