commit | 2b028dd828cdb5ed88be856115395296634c6fa6 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Dec 31 23:56:46 2013 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Dec 31 23:56:46 2013 +0100 |
tree | f78bb128a1b7aedb5ad8906016ef4b3fd6a237a0 | |
parent | 9fe7aae6eb4b0576832bfaf5b10fa97cbbdf34b5 [diff] |
OPTIM: session: put unlikely() around the freewheeling code The code which enables tunnel mode or TCP transfers is rarely used and at most once per session. Putting it in an unlikely() clause reduces the length of the hot path of process_session() which is already quite long, and also slightly reduces its overall size. Some measurements show a steady gain of about 0.2% thanks to this.