• Rémi Denis-Courmont's avatar
    lib: remove event listener groups · b5985e1d
    Rémi Denis-Courmont authored
    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.)
event.c 8.94 KB