commit | a2b39fb5c58b01f222e550b62e4ef3ee99890d8b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jul 10 21:39:35 2011 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jul 11 06:48:04 2011 +0200 |
tree | 43b4c4063c56e2b0cbff5c34dc51f0e05e829cdf | |
parent | 26deaf51d9784183537f1436dd10b20e8cfdb941 [diff] |
[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.