decreasing cache misses through good design

后端 未结 6 1778
广开言路
广开言路 2020-12-23 10:34

How to decrease the number of possible cache misses when designing a C++ program?

Does inlining functions help every time? or is it good only when the program is CPU

6条回答
  •  情深已故
    2020-12-23 11:16

    For data bound operations

    1. use arrays & vectors over lists,maps & sets

    2. process by rows over columns

提交回复
热议问题