C# Pricing options using the finite difference method

  • Thread starter Thread starter Flave
  • Start date Start date
Not sure if this adds to the discussion.
Afaik, running a C++ executable on .Net Managed Code environment will be slow compared to in other environments, like un-managed, ?nix, etc.
For trading applications this might be slow.

Consider however, MV for which performance is not always the overriding concern. The productivity gains in C# = 4.0 * C++.

MV wants to test many schemes (enter design patterns).
 
Not sure if this adds to the discussion.
Afaik, running a C++ executable on .Net Managed Code environment will be slow compared to in other environments, like un-managed, ?nix, etc.

It depends. Are you using C++/CLI or a mix of C++ and C# code?
 
...low level...no intermediaries needed...native code...:)

This is true for the first C# binary execution as the IL has to be compile to native code, however, further executions will run the native code right away.

The C++ advantage over C# is that you are writing native code from the very beginning which is very handy to tweak your app performance. On the other hand the C# language provides other features that not only increases productivity but also performance.

The parallel library is able to run several loop steps in different threads and is smart enough to figure out how many cores are available to create the right amount of threads, everything in a single line of code. I'm unaware if there are any C++ libraries that perform the same function.

My opinion: both languages are valid if you know how to use them.
 
Back
Top Bottom