I'm working on a cpp project with many .cpp and .h files. I've been trying to improve its slow compile time, and found cpp files in project include many unnecessary headers that are actually not used in code.
Will this deteriorate cpp compile time?
I assume it could, but I want to know exactly why it affect cpp compile time, and theoretically how much it would.