News for hackers. Stuff that matters.
Re:PyPy is faster than C, again: string formatting by pja on Tuesday August 02, 2011 @04:12PM (#2838511)
There's nothing really stopping gcc from doing as well here, since it ought to be able to spot that the format string never changes & roll out a custom sprintf() that doesn't need to parse it every time. However, right now gcc doesn't do that, so it loses to a language implementation that does.

The really sad thing is that using an ostringstream in C++ is even worse, despite the fact that C++ has all the types available to it & doesn't need to parse any format strings at all: Not enough template metaprogramming clearly!

There are no comments on this comment yet.