Unverified Commit 964adfaf authored by Nikolai Vavilov's avatar Nikolai Vavilov Committed by Shelley Vohr
Browse files

buffer: improve copy() performance

There is no need to create a slice when sourceEnd is out of bounds.

PR-URL: https://github.com/nodejs/node/pull/33214


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarZeyu Yang <himself65@outlook.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
parent 66dbaff8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment