]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] process_session: rely only on buffer flags
authorWilly Tarreau <w@1wt.eu>
Sat, 16 Aug 2008 23:00:46 +0000 (01:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 16 Aug 2008 23:15:41 +0000 (01:15 +0200)
commitdafde43410c345ba975299340a76637057dcc9c3
tree7ceaa7a5da2ce07991662d459a31360e9772b0be
parente393fe224bd90640dbc967f28c2872441f1e3f48
[MAJOR] process_session: rely only on buffer flags

Instead of calling all functions in a loop, process_session now
calls them according to buffer flags changes. This ensures that
we almost never call functions for nothing. The flags settings
are still quite coarse, but the number of average functions
calls per session has dropped from 31 to 18 (the calls to
process_srv dropped from 13 to 7 and the calls to process_cli
dropped from 13 to 8).

This could still be improved by memorizing which flags each
function uses, but that would add a level of complexity which
is not desirable and maybe even not worth the small gain.
src/proto_http.c