c++ Programming Glossary: set_v0
Performance degradation due to default initialisation of elements in standard containers http://stackoverflow.com/questions/15952412/performance-degradation-due-to-default-initialisation-of-elements-in-standard-co Consider this simple code compilation unit 1 void set_v0 type x size_t n for size_t i 0 i n i x i simple_function i compilation.. 2 std vector type x n default initialisation is wasteful set_v0 x.data n over writes initial values when a significant amount.. clang 3.2 produced ~10 slower code timing vector vector n set_v0 n 10000 time 3.9e 05 sec n 100000 time 0.00037 sec n 1000000..
|