EASTL versus STL, how can there be such a performance difference in std::vector::operator[]

后端 未结 2 994
挽巷
挽巷 2021-02-13 14:03

According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2271.html vector::operator[] is between 2% and 70% faster in EASTL than a \"comm

2条回答
  •  臣服心动
    2021-02-13 14:26

    I think this passage from the documentation will be crucial

    http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2271.html#eastl_allocator

    It is apparently inspired by the famous 'Towards a better allocator model' article by Pablo Halpern

提交回复
热议问题