Which is the fastest STL container for find?

后端 未结 5 1221
慢半拍i
慢半拍i 2020-12-08 00:35

Alright as a preface I have a need to cache a relatively small subset of rarely modified data to avoid querying the database as frequently for performance reasons. This data

5条回答
  •  误落风尘
    2020-12-08 01:05

    Not an answer per se, but be sure to use a typedef to refer to the container type you do use, something like typedef std::vector< itemtype > data_table_cache; Then use your typedef type everywhere.

提交回复
热议问题