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

[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