]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: log: use lf_buildctx's buffer instead of temporary stack buffers
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 2 May 2024 14:48:56 +0000 (16:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 4 May 2024 08:13:05 +0000 (10:13 +0200)
commitbf3b4001ce16de109d8c786dee118e62a189bab2
treeea1c6e81cb11a992c6a141551cffb527e4d6bd0a
parentccc4341258566cf5e6b26c612c3c88711f2a84f7
OPTIM: log: use lf_buildctx's buffer instead of temporary stack buffers

Now that lf_buildctx isn't pushed on the stack anymore, let's take this
opportunity to store a small buffer of 256 bytes within it, and then use
this buffer as general purpose buffer to build fixed-length strings that
are then printed using lf_{raw}text() function. By doing so we stop
relying on temporary stack buffers.
src/log.c