[Gluster-devel] Query regarding dictionary logic
vbellur at redhat.com
Tue Apr 30 06:14:35 UTC 2019
On Mon, Apr 29, 2019 at 7:15 AM Mohit Agrawal <moagrawa at redhat.com> wrote:
> 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
> 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?
This is a good question. I looked up the source in gluster's historic repo
 and hash_size is 1 even there. So, this could have been the case since
the first version of the dictionary code.
Would you be able to run some tests with a larger hash_size and share your
> Please share your view on the same.
> Mohit Agrawal
> Gluster-devel mailing list
> Gluster-devel at gluster.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gluster-devel