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

后端 未结 6 1242
一个人的身影
一个人的身影 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:42

    I think you have a huge case of pre-mature optimization staring you in the face. Never make micro changes like this in your application until a profiler has definitively told you that it is a source of significant performance problems.

    Otherwise you'll spend a lot of time fixing non-problems.

提交回复
热议问题