r19412: some rather strange looking changes to talloc that gain us about 50%
authorAndrew Tridgell <tridge@samba.org>
Thu, 19 Oct 2006 10:02:26 +0000 (10:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:29 +0000 (14:21 -0500)
commit8644708c3f42d249b5d1fd2bde37aeb35288da13
tree1e7ff687cfe01d3a4fa3f78203246590a5509c7a
parentbe43b8c5692f6bb6f1cc74d07f24376b43593256
r19412: some rather strange looking changes to talloc that gain us about 50%
in the talloc benchmark. These changes were driven by some cachegrind
profiles, with the biggest improvements coming from inlining some
functions.

I don't think it would be a good idea to start spreading inline and
likely()/unlikely() in other parts of Samba, as the benefit in most
code will be very small, but talloc() is such a speed critical part of
Samba that I think these changes are worthwhile
source/lib/talloc/talloc.c