htable module readme says abotu htable param:
size - number specifying the size of hash table. The number of entries in the table is 2^size
does it mean the size of the hash table or how many entries can be stored in hash table?
in lcr module, for example, lcr_hash_size param specifies the former and there is no limit on how many entries a hash table can contain:
Defines the size of hash table used to store <prefix, from_pattern, priority> tuples. Hashing is done based on prefix. Larger value means less collisions with other prefixes. Hash size value should be a power of 2.
it is the same with htable size param?
-- juha
Some time ago, Daniel explained exactly Your question... I'm trying to find the thread, but maybe is quickier if you look also for it... it involved Alex, Daniel and someone else and discussed htable hash table size...
Edson.
Juha Heinanen escreveu:
htable module readme says abotu htable param:
size - number specifying the size of hash table. The number of entries in the table is 2^size
does it mean the size of the hash table or how many entries can be stored in hash table?
in lcr module, for example, lcr_hash_size param specifies the former and there is no limit on how many entries a hash table can contain:
Defines the size of hash table used to store <prefix, from_pattern, priority> tuples. Hashing is done based on prefix. Larger value means less collisions with other prefixes. Hash size value should be a power of 2.
it is the same with htable size param?
-- juha
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Thread founded : http://lists.kamailio.org/pipermail/users/2009-August/024463.html
Edson - Lists escreveu:
Some time ago, Daniel explained exactly Your question... I'm trying to find the thread, but maybe is quickier if you look also for it... it involved Alex, Daniel and someone else and discussed htable hash table size...
Edson.
Juha Heinanen escreveu:
htable module readme says abotu htable param:
size - number specifying the size of hash table. The number of entries in the table is 2^size
does it mean the size of the hash table or how many entries can be stored in hash table?
in lcr module, for example, lcr_hash_size param specifies the former and there is no limit on how many entries a hash table can contain:
Defines the size of hash table used to store <prefix, from_pattern, priority> tuples. Hashing is done based on prefix. Larger value means less collisions with other prefixes. Hash size value should be a power of 2.
it is the same with htable size param?
-- juha
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Edson - Lists writes:
Some time ago, Daniel explained exactly Your question... I'm trying to find the thread, but maybe is quickier if you look also for it... it involved Alex, Daniel and someone else and discussed htable hash table size...
ok, i'll try to dig that and update readme according to the result.
-- juha