diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-12-20 02:04:35 +0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-12-20 04:39:42 +0300 |
commit | d3f8db124463e478420d8bba6fa5cf13af7b4ecb (patch) | |
tree | 70d67ca22134ce144bba0e3d591f79020b9e5f01 /benchmark/url | |
parent | d0c238cc81a7bc4d67453ae2952d7d9368069f89 (diff) |
lib: micro-optimize EventEmitter#removeListener()
Replace the call to Array#splice() with a faster open-coded version
that creates less garbage.
Add a new benchmark to prove it. With the change applied, it scores
a whopping 40% higher.
PR-URL: https://github.com/iojs/io.js/pull/185
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Diffstat (limited to 'benchmark/url')
0 files changed, 0 insertions, 0 deletions