Int64 和 Int32 在 32 位和 64 位 MS Windows 上的实际性能差异是什么? [英] What are the actual performance differences between Int64 and Int32 on 32 and 64 bit MS Windows?

查看:38
本文介绍了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.

这篇关于Int64 和 Int32 在 32 位和 64 位 MS Windows 上的实际性能差异是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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