Newsgroups: php.apc.dev,php.internals Path: news.php.net Xref: news.php.net php.apc.dev:204 php.internals:43304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42980 invoked from network); 11 Mar 2009 11:42:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2009 11:42:25 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:50510] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/A8-23391-F93A7B94 for ; Wed, 11 Mar 2009 06:42:25 -0500 Received: from ws.home ([10.1.10.16]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 11 Mar 2009 13:43:47 +0200 Message-ID: <49B7A39A.4010409@zend.com> Date: Wed, 11 Mar 2009 14:42:18 +0300 User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: shire CC: Lukas Kahwe Smith , PHP Internals List , apc-dev@lists.php.net References: <49A097FE.10205@tekrat.com> <49B6AF73.2050506@tekrat.com> <49B75142.2090808@zend.com> <49B77363.4040000@tekrat.com> In-Reply-To: <49B77363.4040000@tekrat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Mar 2009 11:43:47.0874 (UTC) FILETIME=[A3EE3820:01C9A23E] Subject: Re: [PHP-DEV] [RFC] APC/PHP Lazy Loading From: dmitry@zend.com (Dmitry Stogov) shire wrote: > > Dmitry Stogov wrote: >> Hi, >> >> Personally, I like the patch except for some small possible tweaks, and >> I believe it can't make any harm with lazy loading disabled. > > Thanks, what are the tweaks you'd like to see so I can try to include them? I thought about different semantics for defined_function_hook and declared_class_hook to just load all "lazy" function/classes into regular ZE tables. It's also possible to pass hash_values into lookup_function_hook and lookup_class_hook to don't calculate them twice. I'll return to you in a day or two (after playing with patch and measuring speed difference) to be more concrete. Thanks. Dmitry. >> Could you provide some benchmark results? > > I was hoping to solicit some from others on the list, but haven't seen > anything yet. My best example of gains is Facebook, I believe these > where around 20-30% decrease in CPU usage on a bare-bones page. > > I did test Joomla and Zend Framework, the gains here aren't much if > anything as they seem to be use autoload for most files. (although I > would like to see what lazy method loading can do here). > > I intend to benchmark wordpress as well. I'll post more benchmarks for > the above and this once I make some more tweaks that also might give us > better results. I anticipate that benchmarks are going to vary pretty > drastically depending on code structure, size, autoloading, etc. > >> APC patch to play with it and see advantages/disadvantages? > > I've gone ahead and checked in the current code for APC, so you'll have > the necessary changes if you checkout CVS HEAD. > > -shire