Why is snprintf slow? I am surprised that it would be slow especially when compared to methods like asprintf that allocate the buffer.
On the other hand, if people start to use snprintf in that particular form as a safe way of string copying, compilers could pattern-match this and substitute a direct implementation.