Re: [Mingw-w64-public] Fast sprintf and 15 times slower std::sprintf

2013-06-24 Thread Albus X
Thank you for your response, here is my test result: /d/Downloads/mingw $ cat sprintf.cc #include #define MAX 50 int main () { int i; for (i = 0; i < MAX; i++){ charx[100]; sprintf(x, "x%dx%dx", i, i<<2); } } /d/Downloads/mingw $ cat stdsprintf.cc #incl

Re: [Mingw-w64-public] Fast sprintf and 15 times slower std::sprintf

2013-06-24 Thread Derek Buitenhuis
On 2013-06-24 5:08 PM, Ruben Van Boxem wrote: > IMHO, this needs to be looked into and optimized. Could you test an old build > that uses the v2.x runtime to see if that changes anything. Unfortunately, I > wouldn't be able to point you to one of my builds that uses this. I guess GCC > 4.7.2 or

Re: [Mingw-w64-public] Fast sprintf and 15 times slower std::sprintf

2013-06-24 Thread Ruben Van Boxem
2013/6/22 Albus X > Hello. I experienced a strange efficiency problem in my code and after > some debuging I find that std::sprintf is very slow. Indeed it's even > different from the sprintf function in . > > When doing the following test: > > #include > // #include > // using std:

[Mingw-w64-public] Fast sprintf and 15 times slower std::sprintf

2013-06-21 Thread Albus X
Hello. I experienced a strange efficiency problem in my code and after some debuging I find that std::sprintf is very slow. Indeed it's even different from the sprintf function in . When doing the following test: #include // #include // using std::sprintf; int main () { i