ian.labbe at gmail.com
Mon Jan 19 14:38:53 UTC 2015
thank you very much
2015-01-12 10:19 GMT-05:00 Maxim Dounin <mdounin at mdounin.ru>:
> On Thu, Jan 08, 2015 at 12:34:39PM -0500, Ian Labbé wrote:
> > Hello,
> > Maybe i am not in the right mailing list, please refer me to the good one
> > if i am at the wrong one.
> > I just want to understand the " for (size = start; size <=
> > size++) " loop in the ngx_hash_init function.
> > I do not understand what "size", "key" and "test[key]" mean in first
> The ngx_hash_init() functions tries to build a hash by using a
> varying number of buckets. The "size" variable corresponds to the
> number of buckets we test at the current loop iteration. For each
> size we iterate over all hash items to check how buckets will be
> ("key" is a bucket number for a given hash item, "test[key]"
> stores how many bytes will be stored in the bucket).
> Maxim Dounin
> nginx-devel mailing list
> nginx-devel at nginx.org
Chemin des Quatre-Bourgeois
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel