Files
node/test/parallel
Luigi Pinca 8bf64d135f events: do not keep arrays with a single listener
Use the remaining listener directly if the array of listeners has only
one element after running `EventEmitter.prototype.removeListener()`.

Advantages:

- Better memory usage and better performance if no new listeners are
  added for the same event.

Disadvantages:

- A new array must be created if new listeners are added for the same
  event.

PR-URL: https://github.com/nodejs/node/pull/12043
Backport-PR-URL: https://github.com/nodejs/node/pull/13796
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
2017-07-11 17:43:47 +01:00
..
2016-12-26 14:09:46 +01:00
2016-10-11 12:52:43 -04:00
2016-12-20 14:42:45 -05:00
2016-10-11 12:52:43 -04:00
2017-01-31 17:07:46 -05:00