Question about speed in STL Containers
I'm the one who use STL Containers instead of and standard array (not all the time but most of them), I saw frame rate is drop extremely fast. so I try to reconfig it. at the end I found out that
container.at(i) is much more slower than contain
where this 2 command is giving the same result
anyone know how come of this problem
Best Regards
Chet Chetchaiyan
by the way, if anyone know the trick to increase performance by using STL container please tell me, thank you
typically in the standard library, the "at" methods perform bounds checking and will throw std::range_error's if you pass in an index that is outside of the accepted range. This can, in some cases, cause a significant performance overhead.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement