Files
node/lib
Anatoli Papirovski 58a65d6689 events: optimize condition for optimal scenario
Instead of always checking whether we've already warned about a
possible EventEmitter memory leak, first run the rest of the
code as accessing random properties on an Array is expensive.

In addition, remove an unnecessary truthy check.

PR-URL: https://github.com/nodejs/node/pull/20452
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2018-05-08 14:22:25 -07:00
..
2018-04-16 16:11:21 -07:00
2018-03-05 19:51:30 +01:00
2018-04-05 04:46:26 +08:00
2018-04-16 16:13:59 -07:00
2018-05-04 11:54:32 -04:00
2017-08-28 00:39:42 +04:00
2018-04-03 13:57:41 -07:00
2016-10-04 12:17:32 -04:00
2018-03-05 19:51:30 +01:00
2018-04-16 16:20:31 -07:00
2017-03-10 11:23:48 -08:00
2018-05-08 14:22:25 -07:00
2018-04-05 04:46:26 +08:00
2018-04-20 13:16:39 -07:00
2018-04-03 17:59:22 +02:00