Performance of 32-bit integers in a 64-bit environment (C++)

后端 未结 6 1307
一个人的身影
一个人的身影 2021-02-20 01:00

We\'ve started compiling both 32- and 64-bit versions of some of our applications. One of the guys on my project is encouraging us to switch all of our 32-bit integers to their

6条回答
  •  抹茶落季
    2021-02-20 01:31

    Don't do it. It just means that the cpu will not be able to hold as much data in cache and the penalty for going to main memory is a lot higher than most other things.

提交回复
热议问题