Skip to content

Buffer implemented using Uint8Array #1810

@trevnorris

Description

@trevnorris

Creating this issue so the following can be discussed in the TC meeting:

  1. Deciding whether Uint8Array backed Buffer can roll out on a minor release or only on a major.
  2. My plan is to release the new functionality behind a flag for v3.0. This will allow a full release cycle to test the new functionality before it has to be rolled out by default in v4.0.
  3. Can we get numbers on how many packages are using V8 APIs like v8::Object::GetIndexedPropertiesExternalArrayData()?
  4. Can someone check V8 to see why new ArrayBuffer() is limited to 0x3fffffff? (same as Buffer) If the memory is pre-allocated (which we will be doing) then there is no upper limit. This discrepancy only happens in 4.3. In 4.4 it's fixed so both APIs can be arbitrarily large.
  5. The new Buffer implementation will no longer be setting the class id's. Since they are not actually Persistent's anymore. Will this affect anyone?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions