[OPTIM] small optimization on session_process_counters()
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2007 19:15:35 +0000 (20:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2007 19:22:47 +0000 (20:22 +0100)
commit30e7101137f17e95a650ed44a577b2c157185641
treefa9d6548db27baabb96a730c4bbefdda19b7ce33
parent583bc966064e248771e75c253dddec7351afd8a2
[OPTIM] small optimization on session_process_counters()

It was possible to slightly reduce the size and the number of
operations in session_process_counters(). Two 64 bit comparisons
were removed, reducing the code by 98 bytes on x86 due to the lack
of registers. The net observed performance gain is almost 2%, which
cannot be attributed to those optimizations, but more likely to
induced changes in code alignment in other functions.
src/session.c