c++ Programming Glossary: usevector
std::vector is so much slower than plain arrays? http://stackoverflow.com/questions/3664272/stdvector-is-so-much-slower-than-plain-arrays some test results UseArray completed in 2.619 seconds UseVector completed in 9.284 seconds UseVectorPushBack completed in 14.669.. in 2.619 seconds UseVector completed in 9.284 seconds UseVectorPushBack completed in 14.669 seconds The whole thing completed.. g unsigned char b r r g g b b unsigned char r g b void UseVector TestTimer t UseVector for int i 0 i 1000 i int dimension 999..
|