Just to fight at least a little for STL (I don't want to start a flame-war
about STL): I created StringHelper::UlongToString-methods and benchmarked it
against std::wostringstream. The result was, that for large numbers
(>INT_MAX, where your optimization don't catch), it took 2.3 seconds to
format 1000000 with UlongToString and 1.5 seconds with std::wostringstream
(including std::wostringstream-creation). For small numbers UlongToString
took 0.5 seconds.




I'd like to keep it so that if someone wanted to create an STL stream-free, log4j they wouldn't have to gut the infrastructure. I would be very reluctant to introduce, for example, a new virtual method on Layout where a parameter was a std::wostream. I don't have a problem with localized use of STL streams where appropriate and beneficial.

p.s. Can you modify the autogen or configure to set a macro in config.h to specify whether the RTL contains mbsnrtowcs and wcsnrtombs? (See transcoder.cpp for their use in case I mispelled the names).



Reply via email to