haproxy/contrib/halog
Willy Tarreau 26deaf51d9 [OPTIM] halog: check once for correct line format and reuse the pointer
Almost all filters first check the line format, which takes a lot of code
and requires parsing back and forth. By centralizing this test, we can
save about 15-20 more percent of performance for all filters.

Also, the test was wrong, it was checking that the source IP address was
starting with a digit, which is not always true with local IPv6 addresses.
Instead, we now check that the next field (accept field) starts with an
opening bracket and is followed by a digit between 0 and 3 (day of the
month). Doing this has contributed a 2% speedup because all other field
calculations were relative to a closer field.
2011-07-11 06:48:04 +02:00
..
fgets2-64.c [BUG] halog: correctly handle truncated last line 2011-07-11 06:48:02 +02:00
fgets2.c [BUG] halog: correctly handle truncated last line 2011-07-11 06:48:02 +02:00
halog.c [OPTIM] halog: check once for correct line format and reuse the pointer 2011-07-11 06:48:04 +02:00
Makefile [CONTRIB] halog: report per-url counts, errors and times 2010-10-30 19:04:37 +02:00