commit | 3e34429515912c34d6f63e8b58bb5cb5bf3096fe | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@qualys.com> | Tue Nov 24 16:24:13 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Feb 09 14:53:15 2016 +0100 |
tree | 5dc8ad2c3401946b6d77374ba3a9a9473fa12767 | |
parent | 92d3638d2d2c2bf23bbe5d81b0e1d14a6088f48d [diff] |
MEDIUM: filters: Use macros to call filters callbacks to speed-up processing When no filter is attached to the stream, the CPU footprint due to the calls to filters_* functions is huge, especially for chunk-encoded messages. Using macros to check if we have some filters or not is a great improvement. Furthermore, instead of checking the filter list emptiness, we introduce a flag to know if filters are attached or not to a stream.