Closed Bug 1338168 Opened 7 years ago Closed 7 years ago

micro-optimize GetListenerInfoFor

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

We can use nsCOMArray::Forget() to avoid some unnecessary refcounting.
This is really only called by devtools, but maybe being a little bit faster
there is nice?
Attachment #8835534 - Flags: review?(amarchesini)
Comment on attachment 8835534 [details] [diff] [review]
micro-optimize GetListenerInfoFor

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

I'm not an dom/event peer.
Attachment #8835534 - Flags: review?(bugs)
Attachment #8835534 - Flags: review?(amarchesini)
Attachment #8835534 - Flags: review+
Comment on attachment 8835534 [details] [diff] [review]
micro-optimize GetListenerInfoFor

Ah, interesting, nsCOMArray::Forget does still an allocation.
Attachment #8835534 - Flags: review?(bugs) → review+
Pushed by nfroyd@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3cac14211742
micro-optimize GetListenerInfoFor; r=baku,smaug
https://hg.mozilla.org/mozilla-central/rev/3cac14211742
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: