commit | 8096de9a99e9b028d81ca0a6f0a815ea29543e2a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Feb 26 11:12:27 2010 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Feb 26 11:12:27 2010 +0100 |
tree | ea8183366e395fe5536df75bef3b3cac7351df88 | |
parent | 24657794594693a7e933716cd79bcbb266572d39 [diff] |
[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.