64位.NET性能优化 [英] 64bit .NET Performance tuning

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

问题描述

我知道,.NET是JIT编译你只是在应用程序运行之前运行的架构,但确实JIT编译器优化的64位架构呢?有什么事情需要做,或认为当编程应用程序,将运行在64位系统? (IE浏览器将使用的Int64提高性能,将JIT编译器自动将32位系统的Int64工作?)

I know that .NET is JIT compiled to the architecture you are running on just before the app runs, but does the JIT compiler optimize for 64bit architecture at all? Is there anything that needs to be done or considered when programming an app that will run on a 64bit system? (i.e. Will using Int64 improve performance and will the JIT compiler automatically make Int64 work on 32bit systems?)

推荐答案

的的 64位JIT是一个为32位不同的,所以我希望在输出一定的差异 - 但我不会切换到64位只是为了这一点,我不希望获得多大的速度(如有的话)在通过切换到64位CPU时间。

The 64bit JIT is different from the one for 32bit, so I would expect some differences in the output - but I wouldn't switch to 64bit just for that, and I wouldn't expect to gain much speed (if any) in CPU time by switching to 64bit.

您会发现一个巨大的性能提升,如果您的应用程序使用了大量的内存和电脑有足够的内存来跟上它。我发现,32位.NET应用程序往往会开始扔内存不足异常,当你到1.6GB左右在使用,但他们开始到磁盘鞭打因的分页前不久 - 所以你最终是I / O密集​​型

You will notice a big performance improvement if your app uses a lot of memory and the PC has enough RAM to keep up with it. I've found that 32bit .NET apps tend to start throwing out of memory exceptions when you get to around 1.6gb in use, but they start to thrash the disk due to paging long before that - so you end being I/O bound.

基本上,如果你的瓶颈是CPU则64位的可能性不大,以帮助。如果你的瓶颈是内存,那么你应该看到一个大的提升。

Basically, if you're bottleneck is CPU then 64bit is unlikely to help. If your bottleneck is is memory then you should see a big improvement.

将使用的Int64提高性能,将JIT编译器自动将32位系统的Int64工作

Will using Int64 improve performance and will the JIT compiler automatically make Int64 work on 32bit systems

的Int64已经能够同时兼容32位和64位系统,但它会在64位运行更快。所以,如果你主要是一些与Int64的运算,在64位系统应该帮助运行。

Int64 already works on both 32bit and 64bit systems, but it'll be faster running on 64bit. So if you're mostly number crunching with Int64, running on a 64bit system should help.

最重要的是<一个href="http://channel9vip.orcsweb.com/shows/Behind+The+$c$c/Rico-Mariani-Writing-better-faster-$c$c/?CommentID=290154"相对=nofollow>衡量你的表现。

这篇关于64位.NET性能优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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