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

Have LimitSkipStage create a ByteCode instance as a member variable

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2024-03-04

      While I was investigating tsbs_query regressions with the new TCMalloc, I noticed that we can save one allocation for LimitSkipStage by having it create a ByteCode instance as a member variable.

      Detailed information can be found here.

      Other ideas like creating a per-plan ByteCode instance or per-thread instance were proposed but they are wider changes and will require broader perf impact analysis. On the other hand, this is a localized simple change and perf impact has been already analyzed (Links can be found at the above doc).

            Assignee:
            yoonsoo.kim@mongodb.com Yoon Soo Kim
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: