]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: cache: more efficiently pack the struct cache
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Nov 2017 07:54:31 +0000 (08:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 26 Nov 2017 10:10:53 +0000 (11:10 +0100)
commitfd5efb59364056e23b0dd9bded47b0a6c523b90d
tree6f40f5e17405d41ebe620e7dc6bd2270a5b94742
parent08eaa787392f0b955d26041c08ef885ffc1196c5
CLEANUP: cache: more efficiently pack the struct cache

By having the cache id on 33 bytes as the first member, it was
creating a hole and forcing the "hot" remaining part to be split
across two cache lines. Let's move the id at the end as it's used
only during config parsing.
src/cache.c