Use power of two hash table size

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.13, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None

      Given that we are using a high quality hash function (CityHash), we don't really need hash tables to be sized by prime numbers. Using a prime number modulo is useful to mitigate the effects of bad or unreliable (e.g. user provided) hash functions; that's not the case here. A power of two sizing (512 vs 509) results in about a 1% speedup when running open_cursor in a loop.

              Assignee:
              Donald Anderson
              Reporter:
              Donald Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: