]> git.kaiwu.me - haproxy.git/commit
[OPTIM] force inlining of large functions with gcc >= 3
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Aug 2008 13:48:49 +0000 (15:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Sep 2008 09:14:00 +0000 (11:14 +0200)
commit568fc86d224889c163b811edc9a06948e840e4a6
tree2e022e657c0cb3f5d048a149ef61e1c4e7c1c499
parent0dca3783ff30bb78492750fbb61303f640ec5b91
[OPTIM] force inlining of large functions with gcc >= 3

GCC 3 and above do not inline large functions, which is a problem
with ebtree where most core functions are inlined.

This simple patch has both reduced code size and increased speed.
It should be back-ported to ebtree.
(cherry picked from commit 707d3da01f8475d5c172d347a73bd9e947076df6)
(cherry picked from commit 21cca2e81a3d9ceaafad17e9cdd19dffe4c61776)
include/common/config.h
include/common/eb32tree.h
include/common/eb64tree.h
include/common/ebpttree.h
include/common/ebtree.h