mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 03:19:02 +08:00
removed the use of str() in when building the log to improve perf even more
This commit is contained in:
@@ -24,7 +24,8 @@ public:
|
||||
protected:
|
||||
virtual void _sink_it(const details::log_msg& msg) override
|
||||
{
|
||||
_ostream << msg.formatted;
|
||||
auto buf = msg.formatted.buf();
|
||||
_ostream.write(buf.data(), buf.size());
|
||||
}
|
||||
std::ostream& _ostream;
|
||||
};
|
||||
|
Reference in New Issue
Block a user