它是否有助于利用NGEN? [英] Does it help to use NGEN?

查看:263
本文介绍了它是否有助于利用NGEN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是更好地利用NGEN的ASP.NET应用程序时,我们知道这是不会发生大的变化?或者是JIT不够好?

Is it better to use NGEN an ASP.NET application when we know it is not going to change much ? Or is the JIT good enough?

我问的唯一原因是因为这篇文章杰弗里里希特在2002年说: -

The only reason I asked was because this article by Jeffrey Richter in 2002 says :-

当然,微软在改善CLR和JIT编译器,使其运行速度更快的工作相当辛苦,产生更加优化code,并更有效地使用内存。这些改进需要时间。对于开发者不能等,.NET框架可再发行组件包括一个名为NGen.exe实用。

"And, of course, Microsoft is working quite hard at improving the CLR and its JIT compiler so that it runs faster, produces more optimized code, and uses memory more efficiently. These improvements will take time. For developers that can't wait, the .NET Framework redistributable includes a utility called NGen.exe. "

<一个href=\"http://www.$c$cguru.com/columns/experts/article.php/c4651\">http://www.$c$cguru.com/columns/experts/article.php/c4651

推荐答案

NGEN只会有助于启动时间 - 它不会使code执行任何比它JITting后快。事实上,我相信有一些优化其NGEN的的做,但在JIT一样。

NGen will only help startup time - it doesn't make the code execute any faster than it would after JITting. Indeed, I believe there are some optimizations which NGen doesn't do but the JIT does.

所以,主要的问题是:你有启动时间的问题吗?我不知道怎么的ASP.NET应用程序的启动时间多少将JITting VS等成本,顺便说一句...你应该看看性能管理器图形的JIT来告诉你它有多少时间真正成本你

So, the main question is: do you have an issue with startup time? I don't know how much of an ASP.NET application's start-up time will be JITting vs other costs, btw... you should probably look at the Performance Manager graphs for the JIT to tell you how much time it's really costing you.

(在可用性方面,有多个服务器,这样你就可以是要给你比与NGENed Web应用程序的单台服务器更加受益做滚动重新启动。)

(In terms of availability, having multiple servers so you can do rolling restarts is going to give you much more benefit than a single server with an NGENed web app.)

这篇关于它是否有助于利用NGEN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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