]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] halog: cache some common fields positions
authorWilly Tarreau <w@1wt.eu>
Sun, 10 Jul 2011 16:53:44 +0000 (18:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Jul 2011 04:48:03 +0000 (06:48 +0200)
commit758a6ea46cac53d8f4b48e769d5169caaf2afa08
tree62c221e8afbddf76f38c1a4f7dfaff2ed3e54496
parentdf6f0d1e4905a10639e44ed2100e61a54a8b5d02
[OPTIM] halog: cache some common fields positions

Since many fields are relative and some are used a lot, try to cache them
the first time they're used in order to avoid skipping them twice. The
status counts with HTTP pre-check enabled has sped up by 40%.
contrib/halog/halog.c