commit | d78d80552db24aa0381380252d67ec38e24faf4f | [log] [tgz] |
---|---|---|
author | Matthias Maennich <maennich@google.com> | Mon Jul 05 23:29:09 2021 +0100 |
committer | Liz Kammer <eakammer@google.com> | Thu Jul 08 11:30:11 2021 -0400 |
tree | 3c9c6bf131749252f6f67c6a79e061707d32a52e | |
parent | 5489b9dc4248accdd5cac136511e9aa93a9eed30 [diff] |
symtab: JoinSymbols: reserve intermediate vector size Signed-off-by: Matthias Maennich <maennich@google.com>
diff --git a/src/symtab.cc b/src/symtab.cc index b62df4b..49a7443 100644 --- a/src/symtab.cc +++ b/src/symtab.cc
@@ -209,6 +209,7 @@ string JoinSymbols(const vector<Symbol>& syms, const char* sep) { vector<string> strs; + strs.reserve(syms.size()); for (Symbol s : syms) { strs.push_back(s.str()); }