-
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
buffer: improve copy() performance #29066
Conversation
any results for >32k? |
@YurySolovyov No, is there a particular value you have in mind that you would like to see? |
I just wonder if it actually degrades for larger inputs |
FWIW I just tried with 1MB and it seems only then is there a slight regression (~1%) when doing a partial copy. The funny thing is that even deferring to C++ with no parameter/value validation (basically just a My guess is that there are missing optimizations in V8 for some larger values? |
@nodejs/buffer |
Landed in 6d351d4 |
PR-URL: nodejs#29066 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #29066 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Results of included benchmark:
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes