]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Use Fibonacci hashing for task pointer hash 5803/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 22 Dec 2025 11:53:37 +0000 (11:53 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 22 Dec 2025 11:53:37 +0000 (11:53 +0000)
commitb6f2af3d2947b9eae04bff39ec670182cea4ddca
tree90d40e775a0fa5f47282499512b93f6c8179fd09
parent2b91ebefa54060c28f2953058009b1eac005ddb0
[Fix] Use Fibonacci hashing for task pointer hash

Use golden ratio multiplication for 64-bit to 32-bit pointer hashing.
This provides good distribution with minimal operations (1 multiply +
1 shift) and works well with kh_int_hash_func which is identity.
src/libserver/task.c