commit | 55a6906125a2e578e2eee901440de008dbf8a317 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Oct 26 00:21:52 2012 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 26 01:08:01 2012 +0200 |
tree | a8828c84d527c60b687c9a7007a274041aa42961 | |
parent | 69fa99292e689e355080d83ab19db4698b7c502b [diff] |
OPTIM: channel: inline channel_forward's fast path Most calls to channel_forward() are performed with short byte counts and are already optimized in channel_forward() taking just a few instructions. Thus it's a waste of CPU cycles to call a function for this, let's just inline the short byte count case and fall back to the common one for remaining situations. Doing so has increased the chunked encoding parser's performance by 12% !