commit | d6735d611e2eff10a318ea34e8af018b4e6be7c9 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Dec 07 09:40:01 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Dec 07 13:25:59 2018 +0100 |
tree | 3ec30ed38f6422969efc9a833283534d24b55640 | |
parent | c2a10d4b4cfcfaaa478f88652a9ccd2eb1fb211e [diff] |
MEDIUM: ist: use local conversion arrays to case conversion Calling tolower/toupper for each character is slow, a lookup into a 256-byte table is cheaper, especially for common characters used in header field names which all fit into a cache line. Let's create these two variables marked weak so that they're included only once.