Login  Register

Re: inline calls to volatility bridges?

Posted by japari on Jan 29, 2009; 7:34am
URL: http://quantlib.414.s1.nabble.com/inline-calls-to-volatility-bridges-tp9026p9030.html

Quoting Ferdinando Ametrano <[hidden email]>:

> On Wed, Jan 28, 2009 at 11:13 AM, Luigi Ballabio
> <[hidden email]> 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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev