是C#代码比Visual Basic.NET中的代码更快? [英] Is C# code faster than Visual Basic.NET code?

查看:162
本文介绍了是C#代码比Visual Basic.NET中的代码更快?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时的C#代码比Visual Basic.NET中代码快,或者说是一个神话?

Is C# code faster than Visual Basic.NET code, or that is a myth?

推荐答案

这是一个神话。他们搜集到同一个CLR。但是编译器为同一个程序可以出来在CLR略有不同。因此,对于某些例程有的可能稍微好一点的像(0.0000001%)在C#和VB.NET中的反之亦然快,但他们是如此,他们都是在它计数相同的性能都运行了相同的通用运行库。

That is a myth. They compile down to the same CLR. However the compiler for the same routine may come out slightly differently in the CLR. So for certain routines some may be slightly better like (0.0000001%) faster in C# and vice versa for VB.NET, but they are both running off the same common runtime so they both are the same in performance where it counts.

这篇关于是C#代码比Visual Basic.NET中的代码更快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆