"Tokenization and parsing are some of the most expensive operations in compiling C++. In my own tests, parsing can consume up to 30% of compilation time for files with a large preprocessed output"
https://vector-of-bool.github.io/2019/01/27/modules-doa.html
Wowza! I thought this was a problem unique to JS.