Skip to content
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

Do not copy typedarrays when converting to Buffer #31

Merged
merged 2 commits into from
Apr 10, 2014

Conversation

mafintosh
Copy link
Member

This PR uses typedarray-to-buffer to convert the typedarrays into Buffers.

The reason for this is that new Buffer(typedarray) results in the typedarray being copied so we should get a nice performance bump by just doing toBuffer(typedarray) which only does a reference copy (see feross/buffer#22)

max-mapper pushed a commit that referenced this pull request Apr 10, 2014
Do not copy typedarrays when converting to Buffer
@max-mapper max-mapper merged commit 714b756 into Level:master Apr 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants