Optimize processing of trailing '}'

This commit is contained in:
Victor Zverovich 2018-08-31 15:34:31 -07:00
parent fbc38b9083
commit be0e268468

View File

@ -2148,6 +2148,7 @@ FMT_CONSTEXPR void parse_format_string(
// 2.5x faster than the naive one-pass implementation on long format strings.
auto p = find<IS_CONSTEXPR>(begin, end, '{');
if (p == end) {
if (begin != end)
write(begin, end);
return;
}