C++ - the fastest integer type?

前端 未结 5 1040
不思量自难忘°
不思量自难忘° 2021-02-09 14:00

I\'ve being benchmarking an algorithm, it\'s not necessary to know the details. The main components are a buffer(raw array of integers) and an indexer (integer - used to access

5条回答
  •  梦如初夏
    2021-02-09 14:28

    There are no promises about which type is faster or slower. int is supposed to represent the natural word length of the machine, whatever that might mean, so it might go faster. Or slower, depending upon other factors.

提交回复
热议问题