Closed
Bug 1597163
Opened 5 years ago
Closed 5 years ago
Cache address book lists and cards
Categories
(MailNews Core :: Address Book, task)
MailNews Core
Address Book
Tracking
(thunderbird71 fixed, thunderbird72 fixed)
RESOLVED
FIXED
Thunderbird 72.0
People
(Reporter: darktrojan, Assigned: darktrojan)
Details
(Keywords: perf)
Attachments
(1 file, 3 obsolete files)
10.11 KB,
patch
|
darktrojan
:
review+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
A lot of repeated main thread I/O can be prevented if we remember the cards in a directory and their properties. It also saves scanning the entire properties
table for each card. The downside is using a bit more memory but I think it is worth it.
Assignee | ||
Comment 1•5 years ago
|
||
Attachment #9109341 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 2•5 years ago
|
||
Now without the code I used to check this was actually doing something worthwhile.
Attachment #9109341 -
Attachment is obsolete: true
Attachment #9109341 -
Flags: review?(mkmelin+mozilla)
Attachment #9109342 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 3•5 years ago
|
||
Now with the right file. This is going well. :-/
Attachment #9109342 -
Attachment is obsolete: true
Attachment #9109342 -
Flags: review?(mkmelin+mozilla)
Attachment #9109344 -
Flags: review?(mkmelin+mozilla)
Comment 4•5 years ago
|
||
Comment on attachment 9109344 [details] [diff] [review] 1597163-addrbook-cache-2.diff Review of attachment 9109344 [details] [diff] [review]: ----------------------------------------------------------------- ::: mailnews/addrbook/jsaddrbook/AddrBookDirectory.jsm @@ +322,5 @@ > return card.QueryInterface(Ci.nsIAbCard); > }, > _loadCardProperties(uid) { > + if (this._inner.hasOwnProperty("_cards")) { > + let cachedCard = this._cards.get(uid); should this (preferably) be this._inner._cards? same below
Attachment #9109344 -
Flags: review?(mkmelin+mozilla) → review+
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/d5118af449e7
Cache address book lists and cards; r=mkmelin
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•5 years ago
|
Target Milestone: --- → Thunderbird 72.0
Assignee | ||
Comment 6•5 years ago
|
||
Assuming there are no regressions…
Attachment #9109891 -
Flags: review+
Attachment #9109891 -
Flags: approval-comm-beta?
Comment 7•5 years ago
|
||
Comment on attachment 9109891 [details] [diff] [review] 1597163-addrbook-cache-3.diff That's the beta patch?
Attachment #9109891 -
Flags: approval-comm-beta? → approval-comm-beta+
Assignee | ||
Comment 8•5 years ago
|
||
That's the patch I landed with the review comments addressed. I assume it works on beta.
Assignee | ||
Updated•5 years ago
|
Attachment #9109344 -
Attachment is obsolete: true
Comment 9•5 years ago
|
||
TB 71 beta 4:
https://hg.mozilla.org/releases/comm-beta/rev/a742266bad39219d922edc84559f6f77d0045e1c
status-thunderbird71:
--- → fixed
status-thunderbird72:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•