`printf` and friends need to do work to parse the "%d" format string during each call to `mvprintw`, and then more work to convert a possibly-variable-length integer to a string. Since we know that 0 <= `f[bar]` % 8 < 8, we can perform the character conversion ourselves, saving some CPU time (and battery).master
parent
9610991b3a
commit
04eabc7d8d
1 changed files with 3 additions and 5 deletions
Loading…
Reference in new issue