wyrd
Senior Contributor
I have a .. well, silly question.
If you program something in C/C++ and compile that into a .dll for use in your .NET program, will the code run faster then say programming that same thing in .NET and compiling that into .dll?
Basically it breaks down to C/C++ .dlls vs. .NET .dlls. Common sense to me would say that the code in the C/C++ .dlls would run faster (not by much, though) and thus make your .NET app run faster. But, I don't know how .NET compiles .dll files in comparison to C/C++ so..
Yeah, I know silly question. Come to think of it, instead of asking I probably should just run some benchmark tests of my own. But regardless of that I'm searching for possibly more of a technical answer (as to why they run the same speed or one is faster and how .NET compiles .dlls)
If you program something in C/C++ and compile that into a .dll for use in your .NET program, will the code run faster then say programming that same thing in .NET and compiling that into .dll?
Basically it breaks down to C/C++ .dlls vs. .NET .dlls. Common sense to me would say that the code in the C/C++ .dlls would run faster (not by much, though) and thus make your .NET app run faster. But, I don't know how .NET compiles .dll files in comparison to C/C++ so..
Yeah, I know silly question. Come to think of it, instead of asking I probably should just run some benchmark tests of my own. But regardless of that I'm searching for possibly more of a technical answer (as to why they run the same speed or one is faster and how .NET compiles .dlls)