Dumbindent: When 93% of the Time was Spent in Clang-Format
https://nigeltao.github.io/blog/2020/dumbindent.html [nigeltao.github.io]
2020-06-16 15:57
Summary: The Wuffs compiler outputs C code. When compiling its standard library, over 93% of the time (2.680 out of 2.855 seconds) was spent formatting that C code with clang-format. dumbindent is a new command-line tool (and Go package) that formats C code. Its output is not as ‘pretty’, but it can be over 80 times faster than clang-format (0.008 versus 0.668 seconds to format 12k lines of C code).
source: L