C#比C ++慢多少?

编程入门 行业动态 更新时间:2024-10-28 20:26:27
本文介绍了C#比C ++慢多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

C#比C ++慢多少? TIA Roy

推荐答案

" Roy Gourgi" < RO *** @ videotron.ca>在消息中写道 新闻:4X ******************* @ wagner.videotron ... "Roy Gourgi" <ro***@videotron.ca> wrote in message news:4X*******************@wagner.videotron... 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 ... "Roy Gourgi" <ro***@videotron.ca> wrote in message news:4X*******************@wagner.videotron... 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>在消息中写道 news:uX ************* @ TK2MSFTNGP10.phx.gbl ... "jeremiah johnson" <na*******@gmail> wrote in message news:uX*************@TK2MSFTNGP10.phx.gbl... Michael A. Covington写道: Michael A. Covington wrote: " Roy Gourgi" < RO *** @ videotron.ca>在消息中写道新闻:4X ******************* @ wagner.videotron ... "Roy Gourgi" <ro***@videotron.ca> wrote in message news:4X*******************@wagner.videotron... 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 ++慢多少?

本文发布于:2023-11-06 04:59:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562769.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!