Re: __autoload() and code caching (Was: [PHP-DEV]
| From: | Marc Richards | Date: | Sun, 18 Apr 2004 18:24:01 +0000 |
| Subject: | Re: __autoload() and code caching (Was: [PHP-DEV] | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9349@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
At 01:06 PM 4/18/2004 -0400, Marc Richards wrote:Ok so either I am confused or I am not being very clear with my questions. Let me try to be as explicit as possible. Do the pages that get included by the __autoload() function get parsed and compiled along with the original page when using a code cache? I assumed that since __autoload gets called at runtime, it would be too late for the caches to do their parsing, optimizing and caching. On the other hand I was under the impression that include()d files get pulled in at compile time and therefore get parsed and cached. Maybe I am confusing the meaning of runtime and compile time, but hopefully I have been clear enough that the source of my confusion will be obvious. MarcAndi Gutmans wrote:It gets called at run-time and should work with code-caches. AndiAt 12:57 PM 4/18/2004 -0400, Marc Richards wrote:Does anyone know when __autoload() gets invoked? Is it during code compilation or at runtime? Has anyone tested __autoload() with a code cache like APC or ZPS? MarcSo __autoload DOESN'T get any speed enhancements for a code cache then...?Yes it should. Andi