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

For debug builds, limit the size of the 'fast' reps array to a very small number

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.0
    • None
    • Internal Code
    • None
    • Fully Compatible

    Description

      Internally to mutable, there is a data structure that holds a fixed size array of 'fast' ElementRep objects. If that array is filled, we then spill to a std::vector.

      One side effect of this is that tests that only manipulate a small number of elements never hit the std::vector.

      We want our testing to test both modes. The easiest way to achieve this is to select a very small size for the 'fast' objects in debug builds.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: