Open Bug 1852602 Opened 1 year ago Updated 11 months ago

Optimize EventTarget_Binding::addEventListener / removeEventListener some more

Categories

(Core :: DOM: Bindings (WebIDL), task)

task

Tracking

()

People

(Reporter: mstange, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

addEventListener: https://share.firefox.dev/3Zff8ge
removeEventListener: https://share.firefox.dev/3LiTtOk

The call to new FastEventListener shows up in profiles. At least for the removeEventListener part, that seems like an unnecessary allocation.

It may also make sense to increase the AutoTArray capacity for EventListenerMap::mEntries.

Component: DOM: Events → DOM: Bindings (WebIDL)
You need to log in before you can comment on or make changes to this bug.