且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

.NET 2.0 应用程序(“任何 CPU")在 64 位操作系统/处理器上运行缓慢

更新时间:2023-10-20 17:59:52

64 位并不总是运行得更快.
简短的回答是 64 位应用程序消耗更多内存(如果您有一个 64 位指针数组,它将比具有 32 位指针的相同大小的数组大)更多的内存意味着垃圾收集会更加努力.
阅读 此处此处 了解更多详情.

64 bit will not always run faster.
The short answer is that 64 bit application consumes more memory (if you have an array of 64 bit pointers it will be larger than array of the same size with 32 bit pointers) More memory means that the garbage collection will work harder.
Read here and here for more details.

在任何情况下,您都必须分析应用程序并查看瓶颈在哪里.
(也许查看 GC 是一个不错的起点)

In any case you'll have to profile the application and see where's the bottle neck.
(maybe looking at the GC is a good place to start)