mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
default format_time performance improvement
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
return _str;
|
||||
}
|
||||
|
||||
void clear()
|
||||
void reset_str()
|
||||
{
|
||||
_str.clear();
|
||||
}
|
||||
@@ -68,6 +68,10 @@ public:
|
||||
{
|
||||
return _dev.str_ref();
|
||||
}
|
||||
void reset_str()
|
||||
{
|
||||
_dev.reset_str();
|
||||
}
|
||||
|
||||
private:
|
||||
str_devicebuf _dev;
|
||||
|
@@ -42,9 +42,7 @@ public:
|
||||
// The move ctor should only be called on start of logging line,
|
||||
// where no logging happened yet for this line so no need to copy the string from the other
|
||||
_oss(),
|
||||
_level(other._level)
|
||||
{
|
||||
};
|
||||
_level(other._level) {};
|
||||
|
||||
|
||||
~line_logger()
|
||||
|
Reference in New Issue
Block a user