]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] do not re-check req buffer when only response has changed
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2009 18:20:25 +0000 (19:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2009 18:20:25 +0000 (19:20 +0100)
commit0be0ef9604fa76965bda5b44e854d67e15aa92ae
treee0967dedb156c59a5057ec7db88ec518a1ffb07c
parent531cf0cf8d2974bb9edd8dbf7c37d506e4fac709
[OPTIM] do not re-check req buffer when only response has changed

In process_session(), we used to re-run through all the evaluation
loop when only the response had changed. Now we carefully check in
this order :
  - changes to the stream interfaces (only SI_ST_DIS)
  - changes to the request buffer flags
  - changes to the response buffer flags

And we branch to the appropriate section. This saves significant
CPU cycles, which is important since process_session() is one of
the major CPU eaters.

The same changes have been applied to uxst_process_session().
src/proto_uxst.c
src/session.c