diff options
author | Brian White <mscdex@mscdex.net> | 2015-03-04 22:21:47 -0500 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2015-03-04 22:21:47 -0500 |
commit | 555a7c48cf3b038f9627591cf51b68387f8de36a (patch) | |
tree | 66bc2a039b0e4ab5c3ec9b37ee053eb31ac6c28e /benchmark | |
parent | 563771d8b1c21cd6bb08630e21e94b4f86253daa (diff) | |
download | node-new-555a7c48cf3b038f9627591cf51b68387f8de36a.tar.gz |
events: optimize listener array cloning
This both switches to a single algorithm for array cloning and also
speeds up (by ~100% in the ee-listeners-many benchmark) the
"many elements" case that was previously handled by
`array.slice()`.
PR-URL: https://github.com/iojs/io.js/pull/1050
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Julian Duque <julianduquej@gmail.com>
Diffstat (limited to 'benchmark')
0 files changed, 0 insertions, 0 deletions