Re: Making it easier to leverage APC
| From: | Rasmus Lerdorf | Date: | Sun, 03 Dec 2006 13:05:08 +0000 |
| Subject: | Re: Making it easier to leverage APC | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4383@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
> Faster is always nice but the biggest and most noticable performance gain
> happens. I believe that the performance loss is significant in most
> real-world apps.
> I just pointed it out because PHP users who don't know internals who hear
> this kind of stuff think it's a real issue and start worrying about it, when
> they really don't have to.
How do you know? Have you profiled this extensively? I perfectly agree
that the majority of PHP users don't need the performance. They also
don't need an opcode cache. But we are already talking about the
smaller group of people interested enough in performance to use an
opcode cache, and the question was whether under an opcode cache,
autoloading classes was slower than using a direct top-level include.
And the answer to that is a definitive yes. Slower enough to be easily
seen in benchmarking/profiling.
-Rasmus