add reserve entry::to_string() (#2148)

This commit is contained in:
Pavel Pimenov 2017-07-18 01:05:58 +03:00 committed by Arvid Norberg
parent c4659bc345
commit ea8c5b32da
1 changed files with 1 additions and 0 deletions

View File

@ -637,6 +637,7 @@ namespace {
std::string entry::to_string() const
{
std::string ret;
if (type() == dictionary_t) ret.reserve(280);
to_string_impl(ret, 0);
return ret;
}