-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmark: removed unused arguments from callbacks #14919
Conversation
Removed unused arguments 'buf' and 'rinfo' from the callbacks.
FWIW (in general) the reason this was done was because at least some time ago, V8 would perform optimizations when the number of parameters matched the number of arguments being passed. I do not know if this is the case any longer though. |
cc @nodejs/v8 |
Quick side-by-side runs seem to suggest that removing the unused arguments seems to not significantly affect performance of these benchmarks. But a more thorough check or informed opinion would be welcome. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change LGTM, performance should be considered by @nodejs/v8.
Removed unused arguments 'buf' and 'rinfo' from the callbacks. PR-URL: #14919 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Landed in 36817f7 |
Removed unused arguments 'buf' and 'rinfo' from the callbacks. PR-URL: #14919 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Removed unused arguments 'buf' and 'rinfo' from the callbacks. PR-URL: #14919 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Removed unused arguments 'buf' and 'rinfo' from the callbacks.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
benchmark