REORG: connection: move the hash-related stuff to connection.c
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 15:14:49 +0000 (17:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:41:14 +0000 (01:41 +0200)
commite5983ffb3adbf71a8f286094b1c1afce6061d1f3
tree11dd13b4122cc07894e0b6ae6998aca060a2ab5e
parentfd21c6c6fd29471b73254c7db4f75052ce175ce2
REORG: connection: move the hash-related stuff to connection.c

We do not really need to have them inlined, and having xxhash.h included
by connection.h results in this 4700-lines file being processed 101 times
over the whole project, which accounts for 13.5% of the total size!
Additionally, half of the functions are only needed from connection.c.
Let's move the functions there and get rid of the painful include.

The build time is now down to 6.2s just due to this.
include/haproxy/connection.h
src/connection.c