minor string_view change and comment

This commit is contained in:
gabime 2021-07-19 01:15:53 +03:00
parent 4b3687f1a6
commit 29235d9b4b

View File

@ -328,8 +328,8 @@ protected:
SPDLOG_TRY
{
memory_buf_t buf;
// faster than fmt::format_to(std::back_inserter(buf), fmt, std::forward<Args>(args)...);
fmt::detail::vformat_to(buf, fmt::string_view(fmt), fmt::make_format_args(args...), {});
// little bit faster than fmt::format_to(std::back_inserter(buf), fmt, std::forward<Args>(args)...);
fmt::detail::vformat_to(buf, string_view_t{fmt}, fmt::make_format_args(args...), {});
details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size()));
log_it_(log_msg, log_enabled, traceback_enabled);
}