This excellent article (http://www.grimes.demon.co.uk/dotnet/man_unman.htm)
shows that for 'calculation' based code such as yours, managed C# can be
FASTER than C/C++.
My informal experience backs this up as well.
I have a calculation library written in C compiled into a DLL. I now
need to move into the .NET world and would like som advise on this.
One option would be to keep the C-code in the current dll and call it
directly from C#. This would require marshalling of some structs etc
which could be done in a wrapper class in C#.
The other option would be to convert all code into .NET and retire the
DLL. This I could do, but I am worried that the .NET implementation
won't be as fast as the C implementation, even taking the marshalling
into account.
Would be nice if somebody could do some consulting here....
Re: C# vs C ... The c# which is fit for RAD,especial in enterprise develop, ... I have a calculation library written in C compiled into a DLL.... This would require marshalling of some structs etc ... but I am worried that the .NET implementation... (microsoft.public.dotnet.framework.performance)
Re: C# vs C ... I have a calculation library written in C compiled into a DLL.... need to move into the .NET world and would like som advise on this. ... This would require marshalling of some structs etc ... but I am worried that the .NET implementation... (microsoft.public.dotnet.framework.performance)
Re: C# vs C ... I have a calculation library written in C compiled into a DLL.... This would require marshalling of some structs etc ... but I am worried that the .NET implementation... just-in-time compiled to optimized machine instructions?... (microsoft.public.dotnet.framework.performance)
Re: C# vs C ... I have a calculation library written in C compiled into a DLL.... This would require marshalling of some structs etc ... which could be done in a wrapper class in C#. ... but I am worried that the .NET implementation... (microsoft.public.dotnet.framework.performance)
C# vs C ... I have a calculation library written in C compiled into a DLL.... need to move into the .NET world and would like som advise on this. ... This would require marshalling of some structs etc ... but I am worried that the .NET implementation... (microsoft.public.dotnet.framework.performance)