Jonathan Briggs writes:
The IMAP command for each message is something like UID STORE #### (etc, etc).I noticed that it seems to be taking DAYS to complete this operation. Courier slows down exponentially as the list of messages with keywords increases.You don't notice it with a few hundred messages. After a couple thousand it's taking about a second to do each IMAP command. After 10,000 it's taking over 10 seconds per message.I also ran strace on the imapd processes. It's pretty ridiculous, and it gets to be obvious why it takes so long. Courier is re-opening and re-reading the keywords of every message each time a new keyword is added. So OF COURSE the operation is O(n^2). Very bad.
Unfortunately, I've yet to code the telepathic add-on to Courier that can figure out that when the IMAP client sends a single command to set one keyword for one message, that's just the first one of tens of thousands.
Especially when the IMAP protocol allows a single command to set the keyword on an entire range of messages, in one operation.
So, why don't you take it up with Apple why are they too stupid to figure out that Mail.app can send a single IMAP command, instead of tens of thousands of individual commands, that accomplies the same exact damn thing.
pgpRtjUwBNEwI.pgp
Description: PGP signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
