-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 api for conversion from/to ArrayBuffer #535
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Js side conversion (like
new Uint8Array(buffer)
ornew Buffer(bufferView)
) is really slow cause it treats input as an integer array rather than a pointer to a memory address.In older version of node.js which is compiled with v8 that does not support ArrayBuffer, ArrayBufferViews are constructed with node's Buffer, so there is no such problem.
Could we afford a new api like:
The text was updated successfully, but these errors were encountered: