]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: ist: use local conversion arrays to case conversion
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Dec 2018 08:40:01 +0000 (09:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Dec 2018 12:25:59 +0000 (13:25 +0100)
commitd6735d611e2eff10a318ea34e8af018b4e6be7c9
tree3ec30ed38f6422969efc9a833283534d24b55640
parentc2a10d4b4cfcfaaa478f88652a9ccd2eb1fb211e
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.
include/common/ist.h