Closed Bug 23302 Opened 25 years ago Closed 25 years ago

Copying imap messages to local folders is deadly slow

Categories

(MailNews Core :: Backend, defect, P3)

All
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

References

Details

(Keywords: perf)

I copied 10 small imap messages to a local folder - it took over a minute!
Blocks: 9161
QA Contact: lchiang → suresh
I just tried copying 10 3KB messages to a local folder from imap and it finished
in under 10 seconds on my machine...Strange.
I take that back...not all the message had been copied when I stopped timing. =)
Status: NEW → ASSIGNED
Target Milestone: M14
accepting
At least one part of the problem is that we're fetching the messages one by one,
instead of all at once, the way 4.5 did. My guess is that this is the main
problem - I'll look at what I can do to fix this.
We're also not using PEEK to fetch the message bodies; this is wrong because
it'll mark the message read on the server.
Also John Meyers just posted to the mailnews group saying that we are doing a
SELECT on the destination folder for each copy as well which isn't necessary.
I'm sure this hurts us a lot too.
The destination folder in this case is a local folder, so that's not relevant to
this particular slowness :-(
After poking around the message copy service for a while, it seems that it's
only designed to copy one message at a time (and select the folder after each
copy). I think I'm going to need to rewrite each message service to be able to
copy multiple messages at a time (or just the imap message service, and add some
sort of way of knowing which message services can do multiple copies at one time)
*duh* i forgot this was imap to local...

oh what copy service are you talking about, nsIMsgMessageService?
Keywords: perf
Summary: [PERF] copying imap messages to local folders is deadly slow → Copying imap messages to local folders is deadly slow
Adding perf to keyword field.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Target Milestone: M14 → M13
fixed in m13 - if you re-open this, please move to m14!
On 1/11/00 windows build it took me 25.62 seconds to copy 10 imap msg to Local 
folder. On 2/21/00 windows build it takes only 10.88 seconds. Tested on 133 Mhz, 
Win 95, 64 MB RAM.

Marking as verified. 
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.