Re: Bermudan Swaption Demo--Much faster in release mode

Posted by Luigi Ballabio-2 on
URL: http://quantlib.414.s1.nabble.com/Bermudan-Swaption-Demo-Much-faster-in-release-mode-tp2611p2614.html

At 11:23 AM 7/16/03 +0200, Luigi Ballabio wrote:

>At 11:17 AM 7/16/03 +0200, Ferdinando Ametrano wrote:
>>At 01:22 PM 7/14/2003 -0400, Nehal Patel wrote:
>>>Since I spent some time before I realized this, I thought I would share
>>>it with the list... fyi, the bermudan swaption runs about 20-30 times
>>>faster in relase mode than in debug mode.
>>>
>>>I wonder what causes this significant difference?
>>compiler optimization are disabled in debug mode.
>
>Inlining is disabled as well.

And finally, in debug mode Arrays are checked before access---although I
don't think this can account for more than a factor 2...

Bye,
         Luigi