setting evaluation date slowing down computation?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

setting evaluation date slowing down computation?

JURAJ HUSKA
Hello all,

I use QuantLib in C# code (the swig extension to C#). I need to build discount curves with reference dates going back 10 years (that is, several thousand curves). This is posing some problems as  each call of the function NQuantLib.Settings.Instance().SetEvaluationDate(...) gets longer to complete. Initially, this takes (as one would expect) a split second but each further iteration takes longer and eventually the whole compuation becomes extremely slow.

Any ideas why repeated calls trying to set evaluation date would take longer to respond? I can provide code if anyone thinks it would help.

thanks for any help,

Juraj

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: setting evaluation date slowing down computation?

Luigi Ballabio
On Thu, 2007-07-05 at 22:36 -0500, JURAJ HUSKA wrote:
> Any ideas why repeated calls trying to set evaluation date would take
> longer to respond? I can provide code if anyone thinks it would help.

Yes, please do.

Luigi


--

It is always the best policy to tell the truth, unless, of course,
you are an exceptionally good liar.
-- Jerome K. Jerome



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users