unexpected speedup by manual inlining

Florian Weimer fw@deneb.enyo.de
Wed Oct 29 21:21:00 GMT 2008


* Rohit Garg:

> I didn't know where to start. So I manually inlined these functions.
> They are very small and quite trivial. The program now shows ~60x
> speed-up in that part of the code. I have no idea what's the cause of
> this dramatic speed up.

Manual inlining avoids copy constructor calls.  The effect of that can
be quite noticeable.



More information about the Gcc-help mailing list