Sounds like this would be the equivalent of some theoretical
exp = CompileSprintfFormat("%d %d");
for (i = 0; i < 10000000; i++) {
RunCompiledSprintf(exp, i, i);
}
All I'm really getting out of this is that PyPy now compiles sprintf formats for you and saves the results, and that there's no equivalent API in libc.