News for hackers. Stuff that matters.
Re:Popular Myths about C++, Part 1 by nly on Tuesday December 09, 2014 @09:24AM (#8722822)
Yeah, but as soon as you use snprintf you're throwing performance to the wind.The idiomatic C++ solution should beat it hands down. (gulp)
Re:Popular Myths about C++, Part 1 by vardump on Tuesday December 09, 2014 @07:08PM (#8726732)
Have you benchmarked that? Last I tried some not-so-rigorous microbenchmarks, *printf beat C++ << streams by a factor of 3 on msvc 11 (VS2012).