Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5955

Make use of faster allocation APIs in Node.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-6.4.0
    • Affects Version/s: None
    • Component/s: BSON
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: