Closed Bug 1371061 Opened 8 years ago Closed 8 years ago

nsBaseHashtable::GetOrInsert does two hashtable lookups in the Insert case

Categories

(Core :: XPCOM, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla55
Performance Impact high
Tracking Status
firefox55 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: perf)

Attachments

(1 file)

Assignee: nobody → mats
Thanks for fixing this. I didn't push very hard in the initial bug to do the Right Thing, but I see now that it wouldn't have been very hard to do the Right Thing, which is completely my fault!
Try looks green so far so I think it'll pass.
Attachment #8875526 - Flags: review?(nfroyd)
Attachment #8875526 - Flags: review?(nfroyd) → review+
Pushed by mpalmgren@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/97735d7197e2 Optimize nsBaseHashtable::GetOrInsert() to only do a single hashtable lookup. r=froydnj
Whiteboard: [qf] → [qf:p1]
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Performance Impact: --- → P1
Whiteboard: [qf:p1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: