Improve Efficiency of nsImapMailFolder::GetOfflineMsgFolder by not checking "\\All Mail", "\\Trash" or "\\Spam" labels because they are never returned by the server
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
People
(Reporter: dlech, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: perf, Whiteboard: [patchlove][needs profile])
Attachments
(3 files, 1 obsolete file)
3.27 KB,
patch
|
Bienvenu
:
review-
|
Details | Diff | Splinter Review |
17.42 KB,
text/plain
|
Details | |
7.06 KB,
patch
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•13 years ago
|
||
Updated•13 years ago
|
Comment 2•13 years ago
|
||
Updated•13 years ago
|
Reporter | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Reporter | ||
Comment 7•12 years ago
|
||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Comment 16•11 years ago
|
||
Updated•9 years ago
|
Updated•3 years ago
|
Comment 17•2 years ago
|
||
Gene, do you have short take on this, and the patch in comment 10?
In short, is it worth adding (or simplifying) code?
Comment 18•2 years ago
|
||
(Comment 9 about server side filters is interesting)
Comment 19•2 years ago
|
||
I've never before looked at how these special gmail flags work, so this is new to me.
On my gmail account I now have only 1 folder that uses offline store called "nf". I copied 3 messages from nf to a folder called "temp" so these 3 messages in temp have labels "nf" and "temp" and some also have label \INBOX since they originated there I assume. When I open one of the messages in temp the code still thinks temp has offline store until I repair temp then it doesn't. Anyhow, when I open one of the messages again in temp, no offline store is found. It should find the messages stored in mbox for nf.
The bug causing it to not find nf offline store is that subMsgFolder needs to be set back to nullptr at the end of the loop before checking the next label for offline. When I do that it works OK and the messages copied to temp from nf now use the nf offline store when opened in temp (temp itself has no offline store).
However, still need to see why the original copy from nf to temp left the offline flags set and have to repair it to clear them.
Back to the subject of this bug -- Since gmail never returns \All Mail, \Spam and \Trash labels, looks like the checks for those could be eliminated. However those checks look fairly quick so not sure it would really affect performance. What I'm seeing is the function that does the check is called hundreds of time when a message is opened and don't know why. That seems like a bigger performance concern.
Comment 20•1 year ago
|
||
(In reply to gene smith from comment #19)
...
Back to the subject of this bug -- Since gmail never returns \All Mail, \Spam and \Trash labels, looks like the checks for those could be eliminated. However those checks look fairly quick so not sure it would really affect performance. What I'm seeing is the function that does the check is called hundreds of time when a message is opened and don't know why. That seems like a bigger performance concern.
Do we have a bug report for that "bigger concern"?
Comment 21•1 year ago
|
||
Do we have a bug report for that "bigger concern"?
No other report for that. I did do some work on this back in Sept '23 and put it on "hg shelve" and haven't looked at it since. Don't remember the details at this time, but still have the patch. So I'll leave the NI open and look at this again ASAP.
Comment 22•1 year ago
|
||
Here's most of the work I did on this a while back (Sept `23). I still need to work on thisl
Note to self: this is from ~/mozilla2/comm/.hg/shelved/cs-qr-02.patch which may contain more stuff relevant to this.
Description
•