Re: __autoload() and code caching (Was: [PHP-DEV]
| From: | Andi Gutmans | Date: | Sun, 18 Apr 2004 18:43:58 +0000 |
| Subject: | Re: __autoload() and code caching (Was: [PHP-DEV] | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9351@lists.php.net to get a copy of this message | ||
include()'s are also done at run-time and autoload is very similar, thus, YES code caches will work with it.
Please don't ask this question again :)
At 02:24 PM 4/18/2004 -0400, Marc Richards wrote:
Andi Gutmans wrote:At 01:06 PM 4/18/2004 -0400, Marc Richards wrote:It gets called at run-time and should work with code-caches. AndiAndi Gutmans wrote:At 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? MarcOk 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. Marc -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.phpSo __autoload DOESN'T get any speed enhancements for a code cache then...?Yes it should. Andi