Just to keep the reference: we used to have the declaration of iov_add_entry() as extern inline, per GCC documentation[0]:
"If you specify both inline and extern in the function definition, then the definition is used only for inlining. In no case is the function compiled on its own, not even if you refer to its address explicitly. Such an address becomes an external reference, as if you had only declared the function, and had not defined it." In the chat Lauri provided his reports based on gprof to demostrate that something was wrong with the compiler or it documentation: before -> http://pastebin.com/KymdcJdJ after -> http://pastebin.com/8WHgGW0L now it works as expected, thanks! [0] http://gcc.gnu.org/onlinedocs/gcc/Inline.html On Wed, Aug 8, 2012 at 8:28 AM, Lauri Kasanen <[email protected]> wrote: > Hi > > This patchset takes the low-hanging fruit. It inlines all small functions, > that are called too often (more than twice per request) and so have > relatively high function call overhead. > > - Lauri > > _______________________________________________ > Monkey mailing list > [email protected] > http://lists.monkey-project.com/listinfo/monkey > -- Eduardo Silva http://edsiper.linuxchile.cl http://www.monkey-project.com _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
