I want some guidance on how to set up my classes to optimize my program’s speed and size. I don’t really care about compile time.
My program has alot of large classes with large header files and most new classes I make need one or two functions from at least a dozen of the large classes.
They are usually the same functions needed across the project.
class CMyApp : public CWinApp
…(Tons of other functions)
A crapload of other classes need that TempDirectory() function, will it hurt the program’s performance to have “#include “MyApp.h” all over the place?
Should I add some intermediate files to provide access to these common functions?
…(a few other common functions)
Then just include “Directories.h” everywhere.
Any suggestions and explanations would be appreciated; the project is becoming a mess of header files.