3 ms·
> m sorry, but if you’re looking for subsecond compile times, you’re simply not going to get it in C, C++, Java, I always get subsecond compile times when acti
by lelanthran 3y ago
> m sorry, but if you’re looking for subsecond compile times, you’re simply not going to get it in C, C++, Java,
I always get subsecond compile times when actively working in C, until headers are changed. Single files take milliseconds to compile, and you ordinarily aren't changing multiple files at a time.
A 2000 line module I was working with was compiling in about 20ms, with a clean performed beforehand.
My last project, around 10k sloc in about 6 modules compiled and linked in under 1s.
The exception to this is embedded environments which run cmake more often than required (specifically the ESP32 IDF) or similar.