why is my rudimentary implementation of Vector faster than the stl version for push_back?
Advertisements I have implemented a rudimentary vector using the code from the Weiss C++ textbook on data structures (see below). when i time it with 100,000 push_backs it takes 0.001 seconds. when i do the exact same experiment using the stl::vector, it takes 0.008 seconds (roughly 8x slower). does anyone know why this is? thanks… Read More why is my rudimentary implementation of Vector faster than the stl version for push_back?