Closed Bug 183560 Opened 22 years ago Closed 18 years ago

mail copy is very inefficient

Categories

(MailNews Core :: Backend, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: colin, Assigned: Bienvenu)

References

Details

(Keywords: perf)

Attachments

(1 file)

As reported in bug 182227, we need to do something about the way mailnews copies
a mail message (for example, when it copies it to the Sent folder). Here's what
its doing.

We read 10k bytes into a buffer, return just the first line, seek to the end of
the first line, then read 10k bytes again, return the second line, seek to the
end of the second line, etc. Talk about slow. No wonder I'm seeing reports of
disk grinding noises. I don't think you could come up with a slower way to copy
a file if you tried!!!
QA Contact: gayatri → gchan
Keywords: perf
*** Bug 182227 has been marked as a duplicate of this bug. ***
Blocks: 193931
Reporter, is this on an IMAP account?
Nope, POP3.
taking.
Assignee: mscott → bienvenu
Attached patch partial fixSplinter Review
this will speed up copying quite a bit, and fix the disk grinding. It doesn't
have to do with your diagnosis of the problem, Colin, but it gives a huge perf
win so I'm attaching it to this bug.
Comment on attachment 121081 [details] [diff] [review]
partial fix

this has r/sr=sspitzer
Product: MailNews → Core
marking fixed
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: