|
From: Jose Aparicio-N. <ja...@fr...> - 2009-01-29 07:34:34
|
Quoting Ferdinando Ametrano <qf...@am...>: > On Wed, Jan 28, 2009 at 11:13 AM, Luigi Ballabio > <lui...@gm...> wrote: > > Nope, it's a virtual method. In most cases a compiler would not inline > > it, even if it was defined as inline. > > Amen > > ciao -- Nando > Thank you both for the answers, fair enough, it is a trade off; anyway this is not the method I will be calling at every time step of a MC simulation. I was curious though and I have checked the assembler code VC++ generates with an inlined virtual member. On the default compilation it ignores me and does not inline but it does with -Ob1 and -Ob2. Naively though the vt ptrs might dissapear but of course they are there for their local stacks. Regards pepe |