从升级.NET框架的性能改进 [英] Performance improvements from upgrading .NET Framework

查看:153
本文介绍了从升级.NET框架的性能改进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目写在.NET 4.0中,并没有任何语法或特征的原因将其升级到.NET 4.5。不过,我在想,如果执行性能将有所改善。

I have a project written in .NET 4.0, and have no syntax or feature reason to upgrade it to .NET 4.5 . However, I was wondering if execution performance would improve.

现在,据我了解, IL code可能会保持不变,所以性能方面的改进将来自CLR的改进。但随着.NET 4.5 <一个href="http://www.hanselman.com/blog/NETVersioningAndMultiTargetingNET45IsAnInplaceUpgradeToNET40.aspx"相对=nofollow>仍在运行的.NET 4.0 CLR ,会不会有通过升级有任何显着的性能提升?

Now, I understand that the IL code will probably remain the same, so performance improvements would come from CLR improvements. But as .NET 4.5 is still running the .NET 4.0 CLR, would there be any noticeable performance improvements by upgrading?

(为求完成/博览会,怎么样从.NET CLR 2升级到.NET CLR 4?)

(For sake of completion/exposition, what about an upgrade from .NET 2 CLR to .NET 4 CLR?)

推荐答案

对,CLR版本号仍然是相同的4.5 CLR的替换的4.0 CLR。修订然而巨大的。从支持WinRT的开发语言投影短,重点针对4.5版本实际上在PERF的改善。

Right, the CLR version number is still the same and the 4.5 CLR replaces the 4.0 CLR. The revision is however substantial. Short from the language projection that supports WinRT development, the focus for the 4.5 version was in fact on perf improvements.

我只是简单地描述它们,它已经很好地覆盖在这本杂志文章

I'll just briefly describe them, it is already well covered in this magazine article:

  • 多核J​​IT。其中IL编译机器code上的多个核心。改善热启动时间
  • 在档案导引优化。 Ngen.exe注重收集的测试运行,以优化的本土code布局仪表数据。它提高了热code中的缓存位置。
  • 在大对象堆的改进。蕙历来有内存碎片问题,提高了4.5
  • 在服务器GC背景集合。可一段时间已经在工作站GC,现在还支持服务器GC。减少收集暂停。
  • 不是文中提到,上使用反射.NET类型由pre-缓存类型的数据,共同.NET类型的改善。
  • 查看文章的其他部分的其他变化。

这篇关于从升级.NET框架的性能改进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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