]> git.kaiwu.me - haproxy.git/commit
OPTIM: sym: skip the embedded table when the file provided the symbols
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 15 Sep 2026 15:51:03 +0000 (17:51 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 1 Oct 2026 15:06:31 +0000 (17:06 +0200)
commitc5d909b5c44a0b48028d413d0b3a4992d3651bc0
treedc8ee1beb4ced381a581b51e5bcd26b895219c47
parent85f815c7f023d2334c7696c479ab8873172f2a81
OPTIM: sym: skip the embedded table when the file provided the symbols

The embedded compressed table and the file's .symtab describe the same
local functions, the latter being a superset, so decompressing it when the
file is readable is pure loss, which is the common case.

Only decompress it when the file gave us nothing, i.e. once stripped or
unreachable. This is what the table is for and saves inflating about 1.5 MB
per object at every start.
src/sym.c