]> git.ipfire.org Git - thirdparty/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:04:51 +0000 (11:04 +0200)
commit21cca2e81a3d9ceaafad17e9cdd19dffe4c61776
treeea02a23a850d3d31f82aac32d6f83434407aeaf1
parentee113f5345c49a1e8ea9c8ea6b047f3c0f43db1f
[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)
include/common/config.h
include/common/eb32tree.h
include/common/eb64tree.h
include/common/ebpttree.h
include/common/ebtree.h