C#vs VB.NET [英] C# vs VB.NET

查看:53
本文介绍了C#vs VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我老板的老板听说过传言C#比VB.NET快,现在因为我们正在用VB.NET写东西而感到担忧。我的第一反应是

这是荒谬的。他们都编译到同一个IL,对吗?


现在我做了一点C#,但总的来说我患了卷曲恐怖症,

所以我正在寻找失败的理由来打败他的主张。任何人都可以给我指一篇

的文章或任何正式的文章,说明这两种语言都比其他语言更快吗?

解决方案

C#有点快......


但是那不是很多


Adam J. Schaff <关于***** @ cascocdev.com> schrieb im Newsbeitrag

新闻:e1 ************** @ TK2MSFTNGP10.phx.gbl ...

我的老板's老板听说过C#比VB.NET更快的谣言,现在因为我们正在用VB.NET写东西而感到担忧。我的第一反应是,这是荒谬的。他们都编译到同一个IL,对吗?

现在我做了一点C#,但总的来说我遭受了
curlybraceaphobia,所以我正在寻找amunition打败他的主张。任何人都可以指向
一篇文章或任何正式的文章说明两种语言都比其他语言更快?



两种语言都针对同一个CLR进行编译..我们使用C#和VB.NET,我们

到目前为止没有看到任何差异..


VJ


" Adam J. Schaff" <关于***** @ cascocdev.com>在消息中写道

新闻:e1 ************** @ TK2MSFTNGP10.phx.gbl ...

我的老板's'老板听说过C#比VB.NET更快的谣言,现在因为我们正在用VB.NET写东西而感到担忧。我的第一反应是,这是荒谬的。他们都编译到同一个IL,对吗?

现在我做了一点C#,但总的来说我遭受了
curlybraceaphobia,所以我正在寻找amunition打败他的主张。任何人都可以指向
一篇文章或任何正式的文章说明两种语言都比其他语言更快?



>但总的来说,我患有大黄斑疮,


大声笑。听起来像你的老板患有非卷曲恐怖症。 ;)

他们都编译到同一个IL,右边


是的,但是VB编译器可能生成不同于C#编译器的IL

不同的情况。这导致C#在一些

条件下略微加快,而VB在其他条件下略快。


这是一个古老的厌倦论点恕我直言。

管理语言之间的任何性能差异都会对现实世界的b $ b b应用产生任何影响。编写一个表现良好的应用程序的最重要的一个因素是一个很好的设计,他不仅要了解必须要做的事情,还要了解其中的性能瓶颈是

喜欢居住。你的老板在我的意见中看起来不像这样的人。


我不能想到任何手头的文章,但我我相信你会发现各种各样的有偏见的文章(以及那里的表演样本)没有现实世界的b $ b。如果你的应用程序在用VB编写时表现不好,那么将它移植到C#就不会让它变得更快。


只是我的2p,


Trev。


" Adam J. Schaff" <关于***** @ cascocdev.com>在消息中写道

新闻:e1 ************** @ TK2MSFTNGP10.phx.gbl ...我老板的老板听说过C#是谣言比VB.NET更快,现在关注,因为我们正在用VB.NET编写东西。我的第一反应是,这是荒谬的。他们都编译到同一个IL,对吗?

现在我做了一点C#,但总的来说我遭受了
curlybraceaphobia,所以我正在寻找amunition打败他的主张。任何人都可以指向
一篇文章或任何正式的文章说明两种语言都比其他语言更快?



My boss''s boss has heard a rumour that C# is faster than VB.NET and is now
concerned because we are writing stuff with VB.NET. My first reaction is
that this is absurd. They both compile to the same IL, right?

Now I''ve done a little C#, but on the whole I suffer from curlybraceaphobia,
so I''m looking for amunition to defeat his claim. Can anyone point me to an
article or anything official looking that states that neither language is
faster than the other?

解决方案

C# is a bit faster....

but that''s not much

"Adam J. Schaff" <as*****@cascocdev.com> schrieb im Newsbeitrag
news:e1**************@TK2MSFTNGP10.phx.gbl...

My boss''s boss has heard a rumour that C# is faster than VB.NET and is now
concerned because we are writing stuff with VB.NET. My first reaction is
that this is absurd. They both compile to the same IL, right?

Now I''ve done a little C#, but on the whole I suffer from curlybraceaphobia, so I''m looking for amunition to defeat his claim. Can anyone point me to an article or anything official looking that states that neither language is
faster than the other?



Both languages compile against the same CLR.. We work with C# and VB.NET, we
have seen no difference so far..

VJ

"Adam J. Schaff" <as*****@cascocdev.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...

My boss''s boss has heard a rumour that C# is faster than VB.NET and is now
concerned because we are writing stuff with VB.NET. My first reaction is
that this is absurd. They both compile to the same IL, right?

Now I''ve done a little C#, but on the whole I suffer from curlybraceaphobia, so I''m looking for amunition to defeat his claim. Can anyone point me to an article or anything official looking that states that neither language is
faster than the other?



> but on the whole I suffer from curlybraceaphobia,

lol. Sounds like your boss suffers from "non-curlybraceaphobia" ;)

They both compile to the same IL, right
Yes, but the VB compiler might generate different IL than the C# compiler in
different situations. This results in C# being slightly faster under some
conditions and VB being slightly faster in others.

This is an old an tired argument IMHO. Any performance differences between
the managed languages will unlikley have any affect on a real world
application. The single most important factor in writing an application that
performs well is a good design written by someone who understands not only
what has to be done, but also understands where performance bottlenecks are
likley to reside. Your boss doesn''t seem like this kind of person in my
opinion.

I can''t think of any articles off hand, but I''m sure you''ll find all sorts
of biased articles (and performance samples out there) that have no
real-world. If your application performs badly when written in VB, porting
it to C# will not make it faster.

Just my 2p,

Trev.


"Adam J. Schaff" <as*****@cascocdev.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl... My boss''s boss has heard a rumour that C# is faster than VB.NET and is now
concerned because we are writing stuff with VB.NET. My first reaction is
that this is absurd. They both compile to the same IL, right?

Now I''ve done a little C#, but on the whole I suffer from curlybraceaphobia, so I''m looking for amunition to defeat his claim. Can anyone point me to an article or anything official looking that states that neither language is
faster than the other?



这篇关于C#vs VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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