Closed Bug 1377135 Opened 7 years ago Closed 7 years ago

nsRefreshDriver::AddImageRequest does unnecessary hashtable lookups

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

Details

(Keywords: perf)

Attachments

(1 file)

      No description provided.
(also removing an unnecessary null-check from the infallible PutEntry
in the then-branch)
Attachment #8882181 - Flags: review?(nfroyd)
Attachment #8882181 - Flags: review?(nfroyd) → review+
I see I mistakenly added a "[delay]" capture there which I don't use.
I'll remove that before landing...
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ccd25299f03f
Use LookupForAdd instead of Get+Put to avoid unnecessary hashtable lookups in nsRefreshDriver::AddImageRequest.  r=froydnj
https://hg.mozilla.org/mozilla-central/rev/ccd25299f03f
Status: NEW → RESOLVED
Closed: 7 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: