Closed Bug 1815271 Opened 1 year ago Closed 1 year ago

Event::GetType could avoid allocations when GetEventName(mMessage) returns a non-null value

Categories

(Core :: DOM: Events, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 file)

Right now GetEventName's return value is assigned to aType, but it could use AssignLiteral and avoid allocation. I had one performance profile where this showed up a very tiny bit, but lost the link.

patch coming

Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b34aa4502224
Event::GetType could avoid allocations when GetEventName(mMessage) returns a non-null value, r=masayuki
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: