Re: How does the Zend engine behave?
| From: | Richard Lynch | Date: | Thu, 26 Oct 2006 17:06:09 +0000 |
| Subject: | Re: How does the Zend engine behave? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243675@lists.php.net to get a copy of this message | ||
On Thu, October 26, 2006 9:33 am, jeff.phplist@tanasity.com 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.
Almost for sure no PHP opcode cache attempts to load files that
*might* be included later.
That would be daft. :-)
They load the file, tokenize it, and store the opcode output of the
tokenizer for later re-execution.
> Thanks Jon. So in summary: use a cache if possible. Late load files to
> save memory. Buy more memory to handle more sessions. And it's
> conceivable that when caches are used, different rules may apply.
If your PHP source scripts themselves are chewing up large chunks of
RAM, that's pretty unusual...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?