]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: poll: optimize fd management functions for low register count CPUs
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Dec 2012 22:34:18 +0000 (23:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Dec 2012 22:34:18 +0000 (23:34 +0100)
commit4a29144591e5ae192a238da7698f760a770824dd
tree1549387a404ec3a2ec705e324f5751eb2199665f
parent462c7206bce85eee93a9f94dd31897fbfaa1c3fc
OPTIM: poll: optimize fd management functions for low register count CPUs

Looking at the assembly code that updt_fd() and alloc/release_spec_entry
produce in the polling loops, it's clear that gcc has to recompute pointers
several times in a row because of limited spare registers. By better
grouping adjacent structure updates, we improve the code size by around
60 bytes in the fast path on x86.
include/proto/fd.h