]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] config: only allocate check buffer when checks are enabled
authorCyril Bonté <cyril.bonte@free.fr>
Wed, 17 Mar 2010 17:56:31 +0000 (18:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2010 21:05:23 +0000 (22:05 +0100)
commitc9f825f060a71af38c0e059c0d80f69795428a76
tree916e4a78ef78574c069d7e1b9cf709aa7f369578
parent039381855dd2cefa4e0c827514c0124728030c65
[OPTIM] config: only allocate check buffer when checks are enabled

To save a little memory, the check_data buffer is only allocated
for the servers that are checked.

[WT: this patch saves 80 MB of RAM on the test config with 5000 servers]
src/cfgparse.c