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

Using Buffers under node.js #8

Closed
dcodeIO opened this issue Jan 4, 2014 · 1 comment
Closed

Using Buffers under node.js #8

dcodeIO opened this issue Jan 4, 2014 · 1 comment

Comments

@dcodeIO
Copy link
Member

dcodeIO commented Jan 4, 2014

Working with ArrayBuffers under node.js is subobtimal for a few reasons:

  1. Pretty much everything in the node universe uses Buffers, so copying between ArrayBuffers and Buffers is required regularily.
  2. Copying between Buffers and ArrayBuffers can be ridiculously slow (see).

Thus, building two different but API-compatible versions of ByteBuffer.js (one for node using Buffers and one for the browser using ArrayBuffers) is what we want from a performance perspective, while keeping in mind to make it a robust and developer-friendly library that can be used in the same way on servers and browsers, regardless of the backing buffer's type.

ByteBuffer 3 will do exactly that besides making the API more intuitive.

@dcodeIO
Copy link
Member Author

dcodeIO commented Jun 3, 2014

ByteBuffer 3 is now on master.

@dcodeIO dcodeIO closed this as completed Jun 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant