Avoid materializing BSONElements twice in decompressIterative

XMLWordPrintableJSON

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

      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
            Reporter:
            Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: