3 ms·
Generally, function call overhead is absolutely worth the added ability to abstract, but adding that overhead per character in all IO operations adds up quickly
by silentbicycle 18y ago
Generally, function call overhead is absolutely worth the added ability to abstract, but adding that overhead per character in all IO operations adds up quickly. Getchar is often the innermost loop of IO-bound processing, so inlining it (in this case, by making it a #define macro) is worth doing as a special case.