Re: [PHP] How does the Zend engine behave?

2006-10-27 Thread Richard Lynch
On Thu, October 26, 2006 8:28 pm, [EMAIL PROTECTED] wrote: > Richard Lynch wrote: >> On Wed, October 25, 2006 11:58 am, [EMAIL PROTECTED] wrote: >>> Are included files ever unloaded? For instance if I had 3 include >>> files >>> and no loops, once execution had passed from the first include file >>

Re: [PHP] How does the Zend engine behave?

2006-10-27 Thread Richard Lynch
On Fri, October 27, 2006 12:11 am, Sean Pringle wrote: >> The Caching systems such as Zend Cache (not the Optimizer), MMCache, >> APC, etc are expressly designed to store the tokenized version of >> the >> PHP script to be executed. >> >> Note that their REAL performance savings is actually in load

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Rasmus Lerdorf
Sean Pringle wrote: >> The Caching systems such as Zend Cache (not the Optimizer), MMCache, >> APC, etc are expressly designed to store the tokenized version of the >> PHP script to be executed. >> >> Note that their REAL performance savings is actually in loading from >> the hard drive into RAM, n

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Sean Pringle
The Caching systems such as Zend Cache (not the Optimizer), MMCache, APC, etc are expressly designed to store the tokenized version of the PHP script to be executed. Note that their REAL performance savings is actually in loading from the hard drive into RAM, not actually the PHP tokenization. S

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Larry Garfield
On Thursday 26 October 2006 20:28, [EMAIL PROTECTED] wrote: > > If you have a PHP script that is 4M in length, you've done something > > horribly wrong. :-) > > Sort of. I'm using Drupal with lots of modules loaded. PHP memory_limit > is set to 20MB, and at times 20MB is used. I think that works p

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread jeff . phplist
Richard Lynch wrote: On Wed, October 25, 2006 11:58 am, [EMAIL PROTECTED] wrote: Are the include files only compiled when execution hits them, or are all include files compiled when the script is first compiled, which would mean a cascade through all statically linked include files. By stat

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Richard Lynch
On Thu, October 26, 2006 9:33 am, [EMAIL PROTECTED] wrote: >> If your include file is actually included, it will use memory. If it >> is not included because of some condition, then it won't use memory. > > I wonder if that's the same when a cache/optimiser is used. Probably. > Maybe I'll check. A

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Richard Lynch
On Wed, October 25, 2006 11:58 am, [EMAIL PROTECTED] wrote: > Are the include files only compiled when execution hits them, or are > all > include files compiled when the script is first compiled, which would > mean a cascade through all statically linked include files. By > statically linked files

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread jeff . phplist
Jon Anderson wrote: Take this with a grain of salt. I develop with PHP, but I am not an internals guy... [EMAIL PROTECTED] wrote: Are the include files only compiled when execution hits them, or are all include files compiled when the script is first compiled, which would mean a cascade thr

Re: [PHP] How does the Zend engine behave?

2006-10-25 Thread Larry Garfield
On Wednesday 25 October 2006 14:48, Jon Anderson wrote: > Take this with a grain of salt. I develop with PHP, but I am not an > internals guy... > > [EMAIL PROTECTED] wrote: > > Are the include files only compiled when execution hits them, or are > > all include files compiled when the script is fi

Re: [PHP] How does the Zend engine behave?

2006-10-25 Thread Jon Anderson
Take this with a grain of salt. I develop with PHP, but I am not an internals guy... [EMAIL PROTECTED] wrote: Are the include files only compiled when execution hits them, or are all include files compiled when the script is first compiled, which would mean a cascade through all statically lin