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

Avoid materializing BSONElements twice in decompressIterative

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QI 2024-02-19

      decompressIterative() shouldn't rematerialize BSONElements. We can use appendPreAllocated to append the materialized elements we receive from the iterator decompressor. This should speed up the benchmarks added in SERVER-85176. This function is just used for testing, so speeding this up will just give us a better look into how much the new decompressor implementation affects the runtime.

            Assignee:
            gil.alon@mongodb.com Gil Alon
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: