events: onceWrapper apply directly with arguments · apapirovski/node@fe13e00 · GitHub
Skip to content

Commit fe13e00

Browse files
committed
events: onceWrapper apply directly with arguments
Due to changes in V8 in 6.0 & 6.1, it's no longer necessary to copy arguments to avoid deopt. Just call .apply with arguments. Retains fast cases for 0-3 arguments. events/ee-once-4-args.js n=20000000 11.58 % *** 1.310379e-05 PR-URL: nodejs#16212 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent d5fb789 commit fe13e00

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/events.js

Lines changed: 1 addition & 4 deletions

0 commit comments

Comments
 (0)