> But, my friend, if you include that file, PHP _still_ has
> to parse it. You just didn't benchmark. No matter what
Actually, I did do benchmarks, you simply didn't understand correctly.
Not all of the functions are used on every page. So if I were to include
all the functions in one file, roughly 30 functions worth of code would
need to be unnecessarily parsed, which obviously causes unecessary
slowdown. This is similar to the original version 2:
/** Version 2 **/
<?
if($condition) {
include 'file_with_some _big_code.php';
} else {
include 'file_with_other_big_code.php';
}
?>
This code will run one set of code. Having the other set of "big_code"
parsed is pointless. FWIW, it's this cutting out of parsing code that
makes the Zend Cache produce such high speed increases.
--
Richard Heyes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]