Every conPrintf call was causing a memset() of 640KB, which is not exactly a cost-free operation. Clearing the entire prbuff is not required as the output into it is always null-terminated.
Verified in a profiler; conPrintf() was taking 2x as much time as the next biggest function.
conPrintf: Improved performance
Every conPrintf call was causing a memset() of 640KB, which is
not exactly a cost-free operation. Clearing the entire prbuff is not
required as the output into it is always null-terminated.
Verified in a profiler; conPrintf() was taking 2x as much time as the
next biggest function.