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

js-bson should not make huge allocations in web environments

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      For performance reasons js-bson allocates an internal buffer of 17MB each time it's instantiated. This could be unexpected in web environments, so we should consider disabling this for just those environments and more generally investigate whether this is still a good approach considering the inability to have this garbage collected can be a problem.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: