Ted Rolle wrote:

I'm suggesting my thoughts on the cleaner grand scheme.

I'm thinking on a different scheme :)



Example:


mod_foo calls mod_bar.

Called routine mod_bar checks for r->filename == NULL 10 times.

Solution:
put the r->filename == NULL check in mod_foo once before calling mod_bar
and eliminate the 10 check in mod_bar.

Think of "module" as something Apache calls, like mod_jk2 or mod_python or mod_perl or XXX... Apache can't very well implement checks to protect those modules from crapping out on r->filename.


I'll shut up now.



Reply via email to