tempesta-tech / tempesta

All-in-one solution for high performance web content delivery and advanced protection against DDoS and web attacks
https://tempesta-tech.com/
GNU General Public License v2.0
617 stars 103 forks source link

replace hash function in tfw_sched_hash.c #28

Closed vdmit11 closed 9 years ago

vdmit11 commented 10 years ago

Replace the hash function in the tfw_sched_hash.c as soon as it will be ready (currently djb2 hash function is used).

krizhanovsky commented 9 years ago

The hash function is implemented: https://github.com/natsys/tempesta/blob/master/tempesta_fw/lib.c#L33

krizhanovsky commented 9 years ago

It seems it's good to generalize hash calculation on URI : https://github.com/natsys/tempesta/blob/master/tempesta_fw/cache.c#L106

Dmitry, I reassign the issue to you back. Could you please update the hash function usage as well as use your code from hash_sched in tfw_cache_key_calc()?