Mailing List Archive


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

Re: [tlug] Giving a program priority briefly



On 10/06/07, Darren Cook <darren@example.com> wrote:

I also got some surprises such as calling a function in the same class
gave no slowdown, but moving the function (marked as inline) to the base
class (these are classes with no virtual functions) gave nearly over a
5% slowdown. So I used a macro.

That is quite surprising!

Are you using g++? WTF is the compiler doing!? I know that a C++
compiler is allowed to ignore the inline keyword when it wants to, but
this seems a bit silly.

Can you post your compiler options? Especially optimisation settings.

-Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links