Question about speed in STL Containers

Started by
1 comment, last by Neon2302 16 years, 6 months ago
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
Advertisement
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.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.

Oh! Thank you very much so now on I can consider using []

This topic is closed to new replies.

Advertisement