Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Giving a program priority briefly



>  > any idea why g++ is ignoring the inline keyword to the detriment of
>  > this program's performance?
> 
> One obvious factor would be if the base class is implemented in a
> different .C from the derived class. ...

No, same .cpp file.

>   int gimme_an_i () { return i; }
> ...
> is more likely to get inlined than
> ...
> int eyes::gimme_an_i () { return i; }

No, it was the first style. I'm glad others thing this is weird as it
suggests the code is to blame somewhere and the problem can be fixed.
I'll announce here when I release this code in case anyone wants to play
with it.

Darren



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links