]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] stats: check free space before trying to print
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Oct 2009 21:35:10 +0000 (23:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Oct 2009 21:35:10 +0000 (23:35 +0200)
commit4e33d8677a17c40dd77488ba317cbf5f3431869c
treee3a47fe6af7ebf680bcd3bec3b9f7b4bc23cb08b
parentea1f5fe28a4ff0645f256527f43f45e8c52c4af6
[OPTIM] stats: check free space before trying to print

This alone makes a typical HTML stats dump consume 10% CPU less,
because we avoid doing complex printf calls to drop them later.
Only a few common cases have been checked, those which are very
likely to run for nothing.
include/proto/buffers.h
src/dumpstats.c