]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] add branch prediction hints in list manipulations
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Jun 2008 20:39:37 +0000 (22:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Jun 2008 20:39:37 +0000 (22:39 +0200)
commit47d940485a1c9c184ddc73d3bd563ec21d7b2088
treeef0ea8623bbfaef885f05656b5db6254fef8ea93
parentb0b37bcd657142d942e7ee8b1c7f1d3651db2d29
[OPTIM] add branch prediction hints in list manipulations

GCC does not do very clever things with the ifs in list manipulation
macros. Adding a 'likely' helps it remove expensive jumps and useless
code.
include/common/mini-clist.h