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

ShardRegistry::_lookup should be an unordered_map

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc2
    • Affects Version/s: None
    • Component/s: Performance, Sharding
    • None
    • Fully Compatible
    • Platform B (10/30/15)

      Currently it is an ordered map, although the ordering is not used except when calling ShardRegistry::toBSON().

      Lookups on this map are done on the egress command path, and getShardNoReload (which calls _findUsingLookUp) shows up as a source of latency in vTune.

            Assignee:
            adam.midvidy Adam Midvidy
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: