Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
events: loop backwards in removeListener
`removeAllListeners` is removing events from end to start. Therefore it spends O(n^2) time, since `removeListener` is searching from start to end.
- Loading branch information