Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From a quick test, including every single header in the standard C and C++ library is 180k loc in an otherwise empty .cc file and compiling it with g++13 in C++23 mode takes 1.6s on my machine. Not amazing, but not terrible either.

I also don't believe in tiny instantiation units, but when compiling real code, parsing the headers themselves is not necessarily the bottleneck.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: