]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] session: don't recheck analysers when buffer flags have not changed
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Nov 2010 13:28:47 +0000 (14:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Nov 2010 13:28:47 +0000 (14:28 +0100)
commit2f976e18b8f932dda4eb567b47c6dc1e1dd0d6b9
tree6911f8e3cd8adc230c9176e322fb04f0dd99d123
parentabe8ea5c1df16e81479644397ed516e391bf630a
[OPTIM] session: don't recheck analysers when buffer flags have not changed

Analysers were re-evaluated when some flags were still present in the
buffers, even if they had not changed since previous pass, resulting
in a waste of CPU cycles.

Ensuring that the flags have changed has saved some useless calls :

  function            min calls per session (before -> after)

  http_request_forward_body       5 -> 4
  http_response_forward_body      3 -> 2
  http_sync_req_state            10 -> 8
  http_sync_res_state             8 -> 6
  http_resync_states              8 -> 6
src/session.c