Query regarding dictionary logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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  
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux