C#比C ++慢多少? [英] How much is C# slower than C++?

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

问题描述




C#比C ++慢多少?


TIA

Roy

推荐答案



" Roy Gourgi" < RO *** @ videotron.ca>在消息中写道

新闻:4X ******************* @ wagner.videotron.net ...

"Roy Gourgi" <ro***@videotron.ca> wrote in message
news:4X*******************@wagner.videotron.net...


C#比C ++慢多少?
Hi,

How much is C# slower than C++?




取决于你在做什么。没有任何内在的原因让它变得更慢

。 MSIL在执行之前被编译成本机代码。



Depends on what you''re doing. There no inherent reason for it to be slower
at all. MSIL is compiled into native machine code before it executes.


Michael A. Covington写道:
Michael A. Covington wrote:
Roy Gourgi < RO *** @ videotron.ca>在消息中写道
新闻:4X ******************* @ wagner.videotron.net ...
"Roy Gourgi" <ro***@videotron.ca> wrote in message
news:4X*******************@wagner.videotron.net...


C#比C ++慢多少?
Hi,

How much is C# slower than C++?



取决于你在做什么。根本没有内在的理由让它变得更慢。 MSIL在执行之前被编译成本机代码。


Depends on what you''re doing. There no inherent reason for it to be slower
at all. MSIL is compiled into native machine code before it executes.




编译使用JIT(即时)编译器进行编译,并且

这增加了执行的时间。它明显变慢了。


虽然慢多少取决于你在做什么。有些人争论得快一半,有些人争论速度快1/4。对于大多数应用来说,它将比足够快得多。



That compilation takes place with a JIT (Just In Time) compiler, and
this adds time to the execution. It is noticeably slower.

How much slower though, depends on what you''re doing. Some argue half
as fast, some argue 1/4 as fast. For most applications it will be more
than fast enough.




" jeremiah johnson" < NA ******* @ gmail.com>在消息中写道

news:uX ************* @ TK2MSFTNGP10.phx.gbl ...

"jeremiah johnson" <na*******@gmail.com> wrote in message
news:uX*************@TK2MSFTNGP10.phx.gbl...
Michael A. Covington写道:
Michael A. Covington wrote:
" Roy Gourgi" < RO *** @ videotron.ca>在消息中写道
新闻:4X ******************* @ wagner.videotron.net ...
"Roy Gourgi" <ro***@videotron.ca> wrote in message
news:4X*******************@wagner.videotron.net...


C#比C ++慢多少?
Hi,

How much is C# slower than C++?



取决于你在做什么。没有任何内在的原因让它变得更慢。 MSIL在执行之前被编译为本机机器代码。


Depends on what you''re doing. There no inherent reason for it to be
slower at all. MSIL is compiled into native machine code before it
executes.



编译使用JIT(即时)编译器进行编译,这样就增加了时间执行。它明显变慢。



That compilation takes place with a JIT (Just In Time) compiler, and this
adds time to the execution. It is noticeably slower.




只有第一次通过方法。循环 - 这是耗时的部分 - 在第一次迭代后全速运行。



Only the first time through a method. Loops - which are the time-consuming
part - run at full speed after the first iteration.


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

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