]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: partially uninline pool_alloc()
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Jan 2022 15:09:29 +0000 (16:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Jan 2022 15:40:48 +0000 (16:40 +0100)
commitd392973dccbbf2647927d996da9251bb09a34363
tree6f7792f0194fdd0f0b43f7b30d70996bdee85dab
parent15c322c41362b3221c19202556b077d87ebd5080
MINOR: pools: partially uninline pool_alloc()

The pool_alloc() function was already a wrapper to __pool_alloc() which
was also inlined but took a set of flags. This latter was uninlined and
moved to pool.c, and pool_alloc()/pool_zalloc() turned to macros so that
they can more easily evolve to support debugging options.

The number of call places made this code grow over time and doing only
this change saved ~1% of the whole executable's size.
include/haproxy/pool.h
src/pool.c