After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 676403 - imapx: Syncing folder after server-side deletion of many messages is *very* slow
imapx: Syncing folder after server-side deletion of many messages is *very* slow
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
3.4.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2012-05-19 23:39 UTC by David Woodhouse
Modified: 2012-05-21 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (4.74 KB, patch)
2012-05-19 23:45 UTC, David Woodhouse
accepted-commit_now Details | Review

Description David Woodhouse 2012-05-19 23:39:43 UTC
I archive mail quarterly, and when it happens I see thousands of messages disappear from each mailbox. This always used to work reasonably, but in 3.4 it seems to take about 40ms for each call to camel_folder_summary_remove_uid().

This means that it takes *minutes* to sync each folder, just for the local database work of removing old messages from the cache. This is an entirely unacceptable performance regression.
Comment 1 David Woodhouse 2012-05-19 23:45:26 UTC
Created attachment 214472 [details] [review]
Proposed fix

This patch reduces the time per message from about 40ms to about 50µs.
Comment 2 Chenthill P 2012-05-21 11:49:27 UTC
Review of attachment 214472 [details] [review]:

Make sense. Please commit the patch.
Comment 3 David Woodhouse 2012-05-21 12:24:33 UTC
To ssh://dwmw2@git.gnome.org/git/evolution-data-server
   6fe2278..5186c99  gnome-3-4 -> gnome-3-4
   2236bc3..23a77e1  master -> master