Roundcube Community Forum

Release Support => Pending Issues => Topic started by: ior on July 28, 2010, 08:02:56 PM

Title: threading performance
Post by: ior on July 28, 2010, 08:02:56 PM
Hi, after installing 0.4beta I am seeing horrible performance with threading if the folder containing the thread has 2000+ mails. I did some logging and basically what is taking time is whatever roundcube is doing between these two log messages. (notice that it takes a full minute)

[29-Jul-2010 01:56:01 +0200]: S: thrd1 OK Thread completed.
[29-Jul-2010 01:57:05 +0200]: C: fuid FETCH 27655 (UID)

During this time the apache process is using 100% cpu.

For reference here is my capabilities from imapd;
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS STARTTLS AUTH=PLAIN

Full debug here: http://dl.dropbox.com/u/45610/imap.txt


Any ideas / suggestions?
Title: threading performance
Post by: alec on July 29, 2010, 02:18:47 AM
Try with these two patches:
Changeset 3832 ? Roundcube Webmail (http://trac.roundcube.net/changeset/3832)
Changeset 3833 ? Roundcube Webmail (http://trac.roundcube.net/changeset/3833)
Title: threading performance
Post by: ior on July 29, 2010, 02:55:54 AM
Quote from: alec;29020Try with these two patches:
Changeset 3832 ? Roundcube Webmail (http://trac.roundcube.net/changeset/3832)
Changeset 3833 ? Roundcube Webmail (http://trac.roundcube.net/changeset/3833)

Thanks for your response, unfortunately there was no or little change in performance. Opening the same email still takes ~1 minute.

Edit:To further add; the size of the thread itself does not matter. I can be a single mail and it still takes a long time. Seems only to be affected by the size of the folder.
Title: threading performance
Post by: alec on July 29, 2010, 03:31:56 AM
Are you sure patches were applied cleanly? The same issue was discussed on users mailing list RoundCube Mailing Lists (http://lists.roundcube.net/mail-archive/users/2010-07/0000011.html)
Title: threading performance
Post by: ior on July 29, 2010, 03:39:43 AM
I actually applied the patches manually and as you suspected I made a mistake, made a huge difference, works lovely now. Thanks :)