removed the use of str() in when building the log to improve perf even more

This commit is contained in:
gabi
2014-10-15 00:46:14 +03:00
parent 41db99556a
commit 650486a067
11 changed files with 117 additions and 115 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
#include <chrono>
#include "../common.h"
#include "fast_oss.h"
namespace c11log
{
@@ -38,8 +38,8 @@ struct log_msg
swap(l.level, r.level);
swap(l.time, r.time);
swap(l.tm_time, r.tm_time);
swap(l.raw, r.raw);
swap(l.formatted, r.formatted);
//swap(l.raw, r.raw);
//swap(l.formatted, r.formatted);
}
@@ -60,8 +60,8 @@ struct log_msg
level::level_enum level;
log_clock::time_point time;
std::tm tm_time;
std::string raw;
std::string formatted;
fast_oss raw;
fast_oss formatted;
};