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
perf: use uint8.subarray instead of uint8.slice #2581
Comments
// Original code with Node.js Buffer // Updated code using Uint8Array |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when migrating to uint8 from node buffer, code which used .slice was not changed, node:buffer's slice creates a subarray, but uint8.slice creates a copy, this needs to be updated to use .subarray, this would be another very big performance gain
The text was updated successfully, but these errors were encountered: