]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: halog: make use of memchr() on platforms which provide a fast one
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Jun 2012 06:52:22 +0000 (08:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Jun 2012 06:52:22 +0000 (08:52 +0200)
commit419a598eae03f9e074e3ba61c5e6579d73f92c34
treef12f936aa521fb1c429630db1fe0e1a731a3cb64
parent8ad4193100aafa19f04929670371bf823dbe11d0
OPTIM: halog: make use of memchr() on platforms which provide a fast one

glibc-2.11 on x86_64 provides a machine-specific memchr() which is faster
than the generic C implementation by around 40%, so let's make it possible
to use it instead of the hand-coded version.
contrib/halog/Makefile
contrib/halog/fgets2.c