Don't do manual reserve calls, its slower than the default way.
authorMilian Wolff <mail@milianw.de>
Wed, 21 May 2014 12:58:09 +0000 (14:58 +0200)
committerMilian Wolff <mail@milianw.de>
Wed, 21 May 2014 12:58:09 +0000 (14:58 +0200)
malloctrace_main.cpp

index ff5890b..777c635 100644 (file)
@@ -232,9 +232,6 @@ int main(int argc, char** argv)
                     cerr << "failed to find instruction " << ipId << endl;
                 }
             }
-            if (data.traces.size() <= id) {
-                data.traces.reserve(id + 1000);
-            }
             data.traces.push_back(trace);
             ++nextTraceId;
         } else if (mode == '+') {