]> git.kaiwu.me - haproxy.git/commit
CLEANUP: session: use local variables to access channels / stream ints
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Nov 2014 14:07:47 +0000 (15:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 19:41:47 +0000 (20:41 +0100)
commit8f128b41ec9a20ecf68f570c53f039820ee913e9
tree2e30de535fb03a579feeb3ffd29b895ac15904cd
parent350f487300115d3e0d98a56630889efeab7108ef
CLEANUP: session: use local variables to access channels / stream ints

In process_session, we had around 300 accesses to channels and stream-ints
from the session. Not only this inflates the code due to the large offsets
from the original pointer, but readability can be improved. Let's have 4
local variables for the channels and stream-ints.
src/session.c