Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross .NET Languages Performances

Tags:

c#

.net

Does using Multiple .NET Languages (Delphi, VB.NET, C#) into the same application (but in differents class library of course) can down peformances compared to a full C# application for example ?

like image 637
Yoann. B Avatar asked Feb 06 '26 09:02

Yoann. B


2 Answers

I'm not an expert on the CLR, but I would guess that you will have very similar performance. All the languages compile to MSIL which runs on the CLR. There could be differences in performance depending on the MSIL generated from the compilers. i.e. It's possible that similar code in VB.NET would compile to less (or more) optimized MSIL than the C# compiler.

like image 52
Lance Fisher Avatar answered Feb 07 '26 23:02

Lance Fisher


Although I don't have any benchmarks off hand, I would say that for the most part it shouldn't. Those different languages all compile the code into CIL, so you should be fine.

One place where this would be different is with the languages that are run on the DLR (IronPython, IronRuby, etc.). They're compiling in the use of some features that aren't present in the CLR and that are more costly operations.

like image 25
commondream Avatar answered Feb 08 '26 00:02

commondream