-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: BSON
Use Case
As a Node.js user
I want BSON to use the faster allocation API
So that the library is more performant
User Impact
- ObjectIds, Binary, Decimal128 should use a version of allocateUnsafe when it is known the entire buffer will be overwritten
Dependencies
- None
Unknowns
- None
Acceptance Criteria
Implementation Requirements
- Create a new ByteUtils API that provides a mechanism for calling allocUnsafe in Node.js
-
- Web environments can continue to call allocate
Testing Requirements
- Assert ObjectIds, Decimal128, and Binary (when being overwritten) use the allocateUnsafe API.
Documentation Requirements
- None
Follow Up Requirements
- None