]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: connection: progressive hash for conn_calculate_hash()
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 25 Jan 2024 09:35:39 +0000 (10:35 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 1 Feb 2024 09:58:30 +0000 (10:58 +0100)
commitea09075f59d2ad0f218687e9ac3fda8d42eff3ed
tree8edd67cda355158cd0147ba19dc1d40cbb377035
parent1de149fb6d3adfb6b0c2498fcc31f28cbad2af8e
OPTIM: connection: progressive hash for conn_calculate_hash()

Some CPU time is needlessly wasted in conn_calculate_hash(), because all
params are first copied into a temporary buffer before computing the
hash on the whole buffer. Instead, let's leverage the XXH progressive
hash update functions to avoid expensive memcpys.
include/haproxy/connection.h
src/connection.c