I was wondering if the two following scenarios have the same performance impact on native C++ code (if there is any performance impact at all).
Let's assume I have the function cpp_calc()
that is doing some calculation stuff and is written in native C++. Also, there is cs_show_gui_stuff()
, which is written in C#.
Now, which of the following scenarios will worsen the native c++ performance (if there is any performance penalty at all)?
Creating a .Net (C#) application that runs
cs_show_gui_stuff()
and callscpp_calc()
in the native C++ dll usingDllImport
or turning C++ into a COM DLL.Creating a C++ application that implements
cpp_calc()
in C++ and runscs_show_guid_stuff()
by placing the C# code in a .Net COM DLL.
Thanks :-)