Int64 和 Int32 在 32 位和 64 位 MS Windows 上的实际性能差异是什么?

Int64 和 Int32 在 32 位和 64 位 MS Windows 上的实际性能差异是什么?

问题描述:

Int64 和 Int32 在 32 位和 64 位 MS Windows 上的实际性能差异是什么?

What are the actual performance differences between Int64 and Int32 on 32 and 64 bit MS Windows?

看到 Int64 与 Int32 在两个操作系统变体中的每一个上的一些实际计时也很棒.XP 或 Vista 也很有趣.

It would also be great to see some actual timings of Int64 vs Int32 on each of the two operating system variants. XP or Vista would also be interesting.

  • 另请参阅有关 memcpy 性能的问题.
  • See also this question about memcpy performance.

就硬件而言,Int64 在 x64 和 IA64 上比 x86 更高效,因为 64 位处理器有 64 位寄存器来执行操作他们.

As far as hardware, Int64 will be more efficient on an x64 and IA64 than x86 because the 64-Bit processors have 64-Bit registers to perform the operations on them.

Int32 在所有 x86、x64 和 IA64 上的效率相同.

Int32 will be equally as efficient on all x86, x64, and IA64.

在 x64 和 IA64 上,Int32 和 Int64 的效率相同.

On an x64 and on an IA64 both Int32 and Int64 are equally as efficient.

在 x86 上 Int32 将比 Int64 更有效率.

On an x86 Int32 will be more efficient than an Int64.

就操作系统本身而言,我认为除了上述性能结果之外,您不会看到任何额外的性能问题.

As far as the OS itself, I don't think you will see any extra performance issues than the performance results mentioned above.