[snip]
include("common_functions.php");

switch($action)
        case "do this":
                include("do_this_funcs.php");
                .....
                function(s) called
        break;

        case "do that":
                include("do_that_funcs.php");
                .....
                other function(s) called
        break;

        case "do the other":
                .....
                no function(s) called
        break;

In this case, at most one of do_this_funcs.php and do_that_funcs.php is
read and compiled -- and in case "do_the_other", neither of them is.
That surely has to be some sort of saving, even if the multiple file
accesses offset it somewhat.  (I suppose I should benchmark this to find
out at what sort of filesizes one outweighs the other, but I can't be
bothered! ;)
[/snip]

Well said Mike, it is all in the organization!

Jay

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to