]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] halog: remove many 'if' by using a function pointer for the filters
authorWilly Tarreau <w@1wt.eu>
Sun, 10 Jul 2011 19:39:35 +0000 (21:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Jul 2011 04:48:04 +0000 (06:48 +0200)
commita2b39fb5c58b01f222e550b62e4ef3ee99890d8b
tree43b4c4063c56e2b0cbff5c34dc51f0e05e829cdf
parent26deaf51d9784183537f1436dd10b20e8cfdb941
[OPTIM] halog: remove many 'if' by using a function pointer for the filters

There were too many filters, we were losing time in all the "if" statements.
By moving all the filters to independant functions, we made the code cleaner
and slightly faster (3%).

One minor bug was found, the -tc and -st options did not report the number
of output lines, but always zero.
contrib/halog/halog.c