Re: Making it easier to leverage APC
| From: | Pierre | Date: | Sun, 03 Dec 2006 19:59:16 +0000 |
| Subject: | Re: Making it easier to leverage APC | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4392@lists.php.net to get a copy of this message | ||
Hello,
On 12/3/06, Robert Cummings <robert@interjinn.com> wrote:
On Sun, 2006-12-03 at 15:38 +0100, Pierre wrote: Hello, On 12/3/06, Lukas Kahwe Smith <lsmith@php.net> wrote:It seems that you are missing the point. I'm talking about the real problem, which is the conditional class declarations not the amount of files. And yes, if you have 125 files included (the files _are_ cached), this exact problem (class declarations) should not be relevant. --PierrePierre wrote:With all respects, I have to say that frameworks users, for the large majority, are not concerned by this "problem". If one uses 2+ includes to say "hello world", he is certainly looking at the wrong place to solve his performance problems (it sounds obvious with this example, maybe not for more "complex" task :) Hmmm, this is interesting stuff... I just top loaded 125 class files consisting of about 200 classes and I shaved about 1/100th of a second off a the load time of a page that makes heavy use of the framwork's library. I used PHP 4.4.4 with eaccelerator. That's especially interesting to me since my framework uses a lazy loading mechanism and only loads the class if it is used. So this particular page would normally only conditionally load about 40 classes in about 30 files.But what can be done? Should "we" stop to talk about this only because the possible confusions? :)I guess the key thing is to come up with a number of benchmarks that illustrate real world scenarios. Obviously not everybody is Yahoo, so their needs and priorities will be different. There are also different programming paradigm that need to be looked at (front controller versus one file per action etc.). Obviously OS platform also comes into the mix, but I think we should try to come up with solutions/guidelines that are as independent as possible.