C++ STL: Array vs Vector: Raw element accessing performance

前端 未结 5 1401
青春惊慌失措
青春惊慌失措 2020-12-02 13:51

I\'m building an interpreter and as I\'m aiming for raw speed this time, every clock cycle matters for me in this (raw) case.

Do you have any experience or informati

5条回答
  •  萌比男神i
    2020-12-02 14:01

    You may be barking up the wrong tree. Cache misses can be much more important than the number of instructions that get executed.

提交回复
热议问题