From: Milian Wolff Date: Wed, 21 May 2014 12:58:09 +0000 (+0200) Subject: Don't do manual reserve calls, its slower than the default way. X-Git-Tag: submit/tizen/20180620.112952^2~529 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2e1ea160728b403c91f36f377e89d1dd4b1682a;p=sdk%2Ftools%2Fheaptrack.git Don't do manual reserve calls, its slower than the default way. --- 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 == '+') {