Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42529

KeyString getValueCopy should only allocate a buffer as large as the source buffer

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Execution Team 2019-08-26

      KeyString getValueCopy uses a new BufBuilder, which allocates a 512 byte buffer by default. Making copies of KeyString could potentially introduce memory pressure by holding large buffers with unused data during index builds.

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: