I'm working on a project that could require a massive OO structure... possibly hundreds of classes under a root class. With my current approach, all of these classes would be loaded upon just about every request. Any suggestions? How much lag on a server would that cause with such a script being included on most requests?
Should I "chop it up"? Not all classes are needed every time. Just the related class as well as all of its parents (obviously). But how would you go about doing that?
The site is PHP and MySQL driven. I've considered "indexing" classes and having them placed in shorter files, then just pull include files from the DB. That's a lot of coding and would it just be faster to just load all objects instead? Where's the threshold (in size of file holding classes) with that type of procedure?
Any suggested articles for structuring large OO in a scripting language? :o