]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] optimized the request parser a bit more
authorWilly Tarreau <w@1wt.eu>
Sun, 17 Dec 2006 11:05:00 +0000 (12:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 17 Dec 2006 11:05:00 +0000 (12:05 +0100)
commit230fd0bfdfec5df9e76e918a31ba6f0ff61930af
treeaae60d46d6a00edab8084af997c61cd45d2a3327
parent976f1ee561f9cb5167cfc2aeee218a345e730b13
[MEDIUM] optimized the request parser a bit more

Some while() constructs are not very efficient with gcc, yet they are
used to scan all the text in the start line and the headers. Replacing
them with more efficient (but ugly) loops provides a global gain of
about 2%, which is not bad at all !
src/proto_http.c