Closed
Bug 1372413
Opened 9 years ago
Closed 9 years ago
History::RegisterVisitedCallback/UnregisterVisitedCallback does unnecessary hashtable lookups
Categories
(Toolkit :: Places, enhancement, P2)
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
Details
(Keywords: perf)
Attachments
(1 file)
Again, we use RemoveEntry(KeyType) when we wanted RemoveEntry(EntryType*) instead.
Comment 1•9 years ago
|
||
yeah, in some points we have a GetEntry, that would give us a faster path to the removal.
| Assignee | ||
Comment 2•9 years ago
|
||
WIP: https://hg.mozilla.org/try/rev/8d167ed3efdad4fc5ed5e02c8d4b5774965a62f4
I added a couple of assertions, just in case. Let's see if it passes:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=64d24fc8c13f3df6d30ff97cd3ec306096ccce1e
| Assignee | ||
Comment 3•9 years ago
|
||
It appears we had infra issues yesterday, here a better Try run:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e878dd5e5c8c3982d7d1d3c92fd22813b6159bb8
Looks green-ish to me.
| Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8877165 -
Flags: review?(mak77)
Comment 5•9 years ago
|
||
Comment on attachment 8877165 [details] [diff] [review]
Use RemoveEntry(EntryType*) instead of RemoveEntry(KeyType) to avoid another hashtable lookup
Review of attachment 8877165 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you for the asserts!
Attachment #8877165 -
Flags: review?(mak77) → review+
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7b189a043ad7
Use RemoveEntry(EntryType*) instead of RemoveEntry(KeyType) to avoid another hashtable lookup. r=mak
Comment 7•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•