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

Replace the hashing function for StringData

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.3.2
    • Component/s: Internal Code
    • None
    • Dev Tools 2019-09-09

      StringData uses murmurhash for it's hashing function. On 32 bit systems it returns a little endian decoded uint32_t of the 32 bit hash output. On 64 bit systems it returns a little endian decoded uint64_t of the 128 bit hash output.

      We should pick something better than murmur, cityhash perhaps (then we could pick something better and stop generating 128 bits of hash only to throw half of it away)

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: