From b2e1ea160728b403c91f36f377e89d1dd4b1682a Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 21 May 2014 14:58:09 +0200 Subject: [PATCH] Don't do manual reserve calls, its slower than the default way. --- malloctrace_main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/malloctrace_main.cpp b/malloctrace_main.cpp index ff5890b..777c635 100644 --- a/malloctrace_main.cpp +++ b/malloctrace_main.cpp @@ -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 == '+') { -- 2.7.4