Closed Bug 1376297 Opened 7 years ago Closed 7 years ago

ImageBridgeChild does unnecessary hashtable lookups

Categories

(Core :: Graphics: Layers, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: perf)

Attachments

(2 files)

      No description provided.
Attachment #8881254 - Flags: review?(nfroyd) → review+
Comment on attachment 8881255 [details] [diff] [review]
part 2 - Switch to nsRefPtrHashtable since it's more appropriate for holding RefPtr values

Review of attachment 8881255 [details] [diff] [review]:
-----------------------------------------------------------------

I feel like I am reviewing the exact same code here that I reviewed in CompositorBridgeChild...
Attachment #8881255 - Flags: review?(nfroyd) → review+
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/92f807c93f8d
part 1 - Use Lookup instead of Get+Remove, and remove a useless Get before Remove, to avoid unnecessary hashtable lookups.  r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/b03666e4837e
part 2 - Switch to nsRefPtrHashtable since it's more appropriate for holding RefPtr values.  r=froydnj
https://hg.mozilla.org/mozilla-central/rev/92f807c93f8d
https://hg.mozilla.org/mozilla-central/rev/b03666e4837e
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: