There will be
approximately 100,000 lines of code.
I did a test which parsed some
dummy files with 100K lines of code,
defining functions typical of what
I would want to do. Parse time is 100 msecs.
The overhead of loading each child process
would be low - Apache child processes run
for typically hundreds of requests before
being recycled, and memory is cheap.
100 msecs is worst case, because all that
code may not have to be loaded every time,
some of it is module-specific.
But for a complex module, such as a knowledge management system, the module's core may easily grow to that. I am looking at porting the OpenACS
community system to PHP. It has dozens of modules, and the modules are extensible.
Do you have any suggestions how to
remove what will be 100 msecs of overhead
for each page request?
Also, for a multithreaded apache, obviously, this
stuff would only be loaded in once in the process.