Closed Bug 711311 Opened 13 years ago Closed 11 years ago

Investigate if bloom filters could improve the performance of nsEventListenerManager::HandleEventInternal

Categories

(Core :: DOM: Events, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: smaug, Unassigned)

Details

Attachments

(1 file)

If ELM could store a bit array and registered events types would be stored in it,
testing whether ELM has a listener for certain type might become faster, at least
in case there are lots of listeners.
Using some tricks the bit array could be perhaps spread to the left-over bits of
ListenerStructs.

Need to profile.
Attached patch perf test implSplinter Review
The answer seems to be that the filter doesn't improve anything but some
very artificial tests.
Posted to tryserver anyway
https://tbpl.mozilla.org/?tree=Try&rev=6971afaf8ba3
Assignee: bugs → nobody
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: