3 ms·
Oh come on, stop with the FUD :) Unlike typical C++ "header only" libraries, the compilation time increase for STB-style "single-file libraries" is completely
by flohofwoe 4y ago
Oh come on, stop with the FUD :)
Unlike typical C++ "header only" libraries, the compilation time increase for STB-style "single-file libraries" is completely negligible because the implementation is also just compiled once for the entire project. Skipping an ifdef-block happens at IO speed, and this is very fast (at least since we left floppy disks behind). We also don't advice people to not comment their code (skipping ifdef is about as fast as skipping comments), or use one-character variable and function names to speed up compilation ;)
- pjmlp 4y agoBack in 1999, I used to wait 1h for building our CRM server solution from scratch, written in a mix of C and TCL, while taking advantage of ClearMake optimization to share object files across the build machines. So nope, no FUD, rather production deployment experience. Naturally if one plans to use C as a scripting language, in tiny projects, maybe it doesn't matter.