]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: revert to use a swap buffer for realignment
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Feb 2010 10:12:27 +0000 (11:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Feb 2010 10:12:27 +0000 (11:12 +0100)
commit8096de9a99e9b028d81ca0a6f0a815ea29543e2a
treeea8183366e395fe5536df75bef3b3cac7351df88
parent24657794594693a7e933716cd79bcbb266572d39
[MEDIUM] http: revert to use a swap buffer for realignment

The bounce realign function was algorithmically good but as expected
it was not cache-friendly. Using it with large requests caused so many
cache thrashing that the function itself could drain 70% of the total
CPU time for only 0.5% of the calls !

Revert back to a standard memcpy() using a specially allocated swap
buffer. We're now back to 2M req/s on pipelined requests.
include/types/global.h
src/haproxy.c
src/proto_http.c