Hi,
I recently blogged a quote from Rasmus on how autload and front
controllers essentially by pass most of what APC can do to speed up PHP [1].
I am wondering if there isnt something we can do to make it possible to
still leverage APC. I guess one issue that APC has to deal with is the
fact that conditional includes essentially mean you could load different
implementations of the same code. This is an edge case that is obviously
legit, but I do not think it is very common at all.
Furthermore a lot of PHP libraries are essentially like PHP extensions
to the end user and I think this is why they are turning to autoload.
They just want the functionality to be there. So maybe we should make it
possible to load a set of classes into every instance automatically.
Either way we should really put out a guide on how to write code that
makes optimal use of byte code caches. I am not really a performance
expert but I am willing to take care of editing this document for final
consumption if people help me with making sure the content base is sound.
regards,
Lukas
[1] http://pooteeweet.org/blog/538
|