Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-10301

Replace _table_runtime with a better data structure in Workgen

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0
    • Affects Version/s: None
    • Component/s: None
    • 3
    • StorEng - Defined Pipeline

      As part of WT-10238 (see this comment), we are implementing a separate set of data structures to maintain a dynamic set of tables. Those data structures are very similar to those used for the static set of tables. However, one of the new ones has been defined as a std::map while its counterpart in the existing code is an array:

          TableRuntime *_table_runtime;                  // # entries per tint_t
      ...
          std::map<tint_t, TableRuntime> _dyn_table_runtime;
      

      It would be great to transform _table_runtime into a std::map or std::vector, this is more C++ oriented and it will allow us to remove the following variable as well:

          uint32_t _runtime_alloced;                     // length of _table_runtime
      

            Assignee:
            sona.reddy@mongodb.com Sona Reddy (Inactive)
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: