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

我只是一个虾纸丫 提交于 2019-12-03 11:52:24

The document states that they used VC++ 2005 for Windows testing, with which checked iterators are enabled by default (yes, even for release builds; same goes for VC++ 2008). I suspect that the performance of operator[] wouldn't be any different if they added -D_SECURE_SCL=0 to their build command-line.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!