[Gluster-devel] Query regarding dictionary logic

Mohit Agrawal moagrawa at redhat.com
Mon Apr 29 14:03:47 UTC 2019


Hi All,

  I was just looking at the code of dict, I have one query current
dictionary logic.
  I am not able to understand why we use hash_size is 1 for a
dictionary.IMO with the
  hash_size of 1 dictionary always work like a list, not a hash, for every
lookup
  in dictionary complexity is O(n).

  Before optimizing the code I just want to know what was the exact reason
to define
  hash_size is 1?

  Please share your view on the same.

Thanks,
Mohit Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20190429/46a09fbf/attachment-0001.html>


More information about the Gluster-devel mailing list