Please sign in to comment.
buffer: remove MAX_SAFE_INTEGER check on length
MAX_SAFE_INTEGER is millions of times larger than the largest buffer allowed in Node.js. There is no need to squash the length down to MAX_SAFE_INTEGER. Removing that check results in a small but statistically significant increase for Buffer.from() operating on ArrayBuffers in some situations. PR-URL: #14131 Reviewed-By: Luigi Pinca <email@example.com> Reviewed-By: Refael Ackermann <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com> Reviewed-By: Tobias Nießen <firstname.lastname@example.org> Reviewed-By: James M Snell <email@example.com> Reviewed-By: Gibson Fahnestock <firstname.lastname@example.org>
- Loading branch information