Skip to content
Snippets Groups Projects
Commit b5985e1d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

lib: remove event listener groups

In real use, there are few (typically only zero or one) listeners per
event type. In this case, the linear search through the listener groups
was actually slower than the linear search through the whole list of
listeners: it required one iteration per event type, even for event
types with no listeners.

(Note: using a hash table over the event type would make a lot more
 sense as an optimization.)
parent 175ce396
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment