Re: __autoload() and code caching (Was: [PHP-DEV]
| From: | Elfyn McBratney | Date: | Sun, 18 Apr 2004 18:15:37 +0000 |
| Subject: | Re: __autoload() and code caching (Was: [PHP-DEV] | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9348@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Marc,
On Sunday 18 Apr 2004 17:06, Marc Richards wrote:
> Andi 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?
> >>
> >>
> >> Marc
> >>
> > It gets called at run-time and should work with code-caches.
> >
> > Andi
>
> So __autoload DOESN'T get any speed enhancements for a code cache then...?
Why do you think that? When it comes down to basics, it's caching opcodes
that gives the performance boost (I don't know about APC and ZPS, maybe there
are other performance enhancing algorithms in those products). And in the
case of Turck MMCache (the one I use :) it's just another cached script.
In the end, __autoload() is just another userland function (with magic
powers ;)
Elfyn
- --
Elfyn McBratney, EMCB
mailto:elfyn@emcb.co.uk
http://www.emcb.co.uk/
PGP Key ID: 0x456548B4
PGP Key Fingerprint:
29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4
Error: quote_machine(): Dry humour detected.
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAgsXJaIgMKkVlSLQRAt/xAJ9MttEjReBiVWJURPUuQNNdPQXrywCgnbKG
ZWK/o4JtuZ6aAxuBe3YfEC0=
=SAEU
-----END PGP SIGNATURE-----