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. -- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net] --------------------------------------------------- PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/8f4f07cd
