]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: mark most static pool configuration variables as read-mostly
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Feb 2022 17:31:53 +0000 (18:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Feb 2022 19:44:26 +0000 (20:44 +0100)
commit9f699958dc668a2a9c505ffa6b6366acaad4c234
tree372f8812de85311f318a1cef0524ed544f76ea95
parent43235676507c9cb651e5d3b8bcd757858c37e1b6
MINOR: pools: mark most static pool configuration variables as read-mostly

The mem_poison_byte, mem_fail_rate, using_default_allocator and the
pools list are all only set once at boot time and never changed later,
while they're heavily used at run time. Let's optimize their usage from
all threads by marking them read-mostly so that them reside in a shared
cache line.
src/pool.c