I am currently working on a C++ project and am quite often using templates. Now I wonder if I should start worrying more about / cleaning up deep #include trees.
After removing not-needed includes, the code size after running the C preprocessor gcc -E
on my .cpp files is:
- 50% of the files: ~40k lines,
- 30% of the files: between 40k and 80k lines,
- 20% of the files: between 80k and 180k lines.
Is there some standard if these are large/small line counts? At what point does it become worth being more aggressive in reducing the #includes?