haproxy/contrib/halog
Willy Tarreau f9042060c9 [OPTIM] halog: add assembly version of the field lookup code
Gcc tries to be a bit too smart in these small loops and the result is
that on i386 we waste a lot of time there. By recoding these loops in
assembly, we save up to 23% total processing time on i386! The savings
on x86_64 are much lower, probably because there are more registers and
gcc has to do less tricks. However, those savings vary a lot between gcc
versions and even cause harm on some of them (eg: 4.4) because gcc does
not know how to optimize the code once inlined.

However, by recoding field_start() in C to try to match the assembly
code as much as possible, we can significantly reduce its execution
time without risking the negative impacts. Thus, the assembly version
is less interesting there but still worth being used on some compilers.
2011-09-10 12:39:30 +02:00
..
fgets2-64.c [OPTIM] halog: make fgets parse more bytes by blocks 2011-09-10 10:46:39 +02:00
fgets2.c [OPTIM] halog: make fgets parse more bytes by blocks 2011-09-10 10:46:39 +02:00
halog.c [OPTIM] halog: add assembly version of the field lookup code 2011-09-10 12:39:30 +02:00
Makefile [CONTRIB] halog: report per-url counts, errors and times 2010-10-30 19:04:37 +02:00