From 04549b878499928c4c40ad93d1e940a36fc2692a Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 20 Mar 2014 04:20:08 +0200 Subject: [PATCH] increased fast_os size to 192 --- example/example.cpp | 8 ++++---- include/c11log/details/fast_oss.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index fd434a2b..744a5ca9 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -29,14 +29,14 @@ int main(int argc, char* argv[]) cout_logger.info() << "Hello cout logger!"; - logger my_logger ("my_logger", {null_sink}); + std::string s(100, '0'); + const unsigned int howmany = 5000000; auto start = system_clock::now(); - - const unsigned int howmany = 5000000; for(unsigned int i = 0; i < howmany ; i++) - my_logger.info() << "Hello logger " << i; + my_logger.info() << s; + //my_logger.info() << "Hello logger " << i;; //async->shutdown(seconds(3)); auto delta = system_clock::now() - start; diff --git a/include/c11log/details/fast_oss.h b/include/c11log/details/fast_oss.h index 33b12a26..4da16744 100644 --- a/include/c11log/details/fast_oss.h +++ b/include/c11log/details/fast_oss.h @@ -71,7 +71,7 @@ protected: } private: //std::string _str; - fast_buf<128> _fastbuf; + fast_buf<192> _fastbuf; }; class fast_oss:public std::ostream