hello, John :)
At this time, my library already does this - you can certainly specify
going quickly through your code i definitly must admit you are farer than i am. there's no apparent reason start new thingy. for example i'd probably never mess with internationalization ;)
whether you want thread-safety or not, and the lib is certainly efficient.
can you give me some hints in the right direction, please? i mean
some general advices "use this if you want be small, this if you want
be fast, avoid that at all costs etc". i'd like both, of course.
i started with your sample and got it down to 12kB (assume 5k is C
helloworld). that's not quite bad, i suppose, but still twice
as it should be ;-P
there are still 9 allocation - there is some vector at initialization
time, but i'd have to read the sources more carefully. perhaps
you could point out these places where expensive and other interesting
things pop up.
minor issues i found:
- logger.hpp:248 when cache is off, source cannot be compiled
(missing ifdef probably)
- pthreads are detected incorrecty. even in singlethr model mutex
is required.
- it would be nice if it can compile with -fno-rtti -fno-exceptions
(op_equal and shared_ptr) see *)
*) note that it would be nice that all boost code that does not really
need rtti could switch it off
(fedora7, boost-1_35_0, gcc-4.1.2, bjam not used)
best regards,
Mojmir
======8<==============
#define BOOST_LOG_BEFORE_INIT_IGNORE_BEFORE_INIT 1
#include <cstdio>
#include