Closed Bug 1372413 Opened 9 years ago Closed 9 years ago

History::RegisterVisitedCallback/UnregisterVisitedCallback does unnecessary hashtable lookups

Categories

(Toolkit :: Places, enhancement, P2)

55 Branch
enhancement

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.
yeah, in some points we have a GetEntry, that would give us a faster path to the removal.
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.
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
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: