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.)
Showing
Please register or sign in to comment