Commit 3e64b567 authored by Felix Böhm's avatar Felix Böhm Committed by Fedor Indutny
Browse files

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.
parent d09ab61d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment