Hi,
Thanks for your reply (and a great lib). If it is 2-5 times faster in c++, then I think I must migrate.
The performance issue that I've noticed is basically the same regardless of the number of nodes, in relative terms. When I try to tweak the parameters, ie the precision or the size of the steps etc, I can affect the performance plenty. However, when I move from a test environment to the real world (with frequent updates and recalculations) it is obviously not enough.
In reply to your questions, I'll give you an example of a typical problem:
We need to make sure that a curve (given a spline or other interpolation method) reprices a group of swaps (2-10 years, 15, 20 and 30 years for example), with annual coupon payments vs 3 month payments. That is, we have 30 + 30 * 4 = 150 points that need to reprice 12 swaps. I'm not sure if this is particularily complicated. When I tweak this problem, I can get it down to under a second. We do this in other systems where it's done lightning fast.
I will try to optimize the way I'm approaching the problem and see if there is something that I've missed, but I doubt it.
Regards.
|