Why is this faster on 64 bit than 32 bit?

前端 未结 5 1206
盖世英雄少女心
盖世英雄少女心 2020-12-01 10:36

I\'ve been doing some performance testing, mainly so I can understand the difference between iterators and simple for loops. As part of this I created a simple set of tests

5条回答
  •  忘掉有多难
    2020-12-01 11:25

    The long datatype is 64-bits and in a 64-bit process, it is processed as a single native-length unit. In a 32-bit process, it is treated as 2 32-bit units. Math, especially on these "split" types will be processor-intensive.

提交回复
热议问题