From ea8c5b32dac5caedaab9b7a12485b5df7c4db75e Mon Sep 17 00:00:00 2001 From: Pavel Pimenov Date: Tue, 18 Jul 2017 01:05:58 +0300 Subject: [PATCH] add reserve entry::to_string() (#2148) --- src/entry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entry.cpp b/src/entry.cpp index 05bbb3e2f..eef727808 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -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; }