feat: don't flush ostream after every logline; +26% speed

This commit is contained in:
Oliver 2022-07-08 01:44:32 +02:00
parent adf02f00c6
commit e04b231ae1
Signed by untrusted user: okaestne
GPG Key ID: 06A81B143EA9588F
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public:
std::ostream* os = getOs(lvl);
if (os) {
*os << sbuf << std::endl;
*os << sbuf << '\n';
}
};
@ -83,7 +83,7 @@ private:
else
*os << sbuf;
*os << std::endl;
*os << '\n';
}
}