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
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