Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46878 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8065 invoked from network); 24 Jan 2010 05:26:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2010 05:26:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.210.192 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.210.192 mail-yx0-f192.google.com Received: from [209.85.210.192] ([209.85.210.192:39473] helo=mail-yx0-f192.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/B7-52645-E1ADB5B4 for ; Sun, 24 Jan 2010 00:26:55 -0500 Received: by yxe30 with SMTP id 30so315231yxe.29 for ; Sat, 23 Jan 2010 21:26:52 -0800 (PST) Received: by 10.151.1.13 with SMTP id d13mr5233345ybi.165.1264310812569; Sat, 23 Jan 2010 21:26:52 -0800 (PST) Received: from ?192.168.200.22? (c-98-234-184-167.hsd1.ca.comcast.net [98.234.184.167]) by mx.google.com with ESMTPS id 8sm1257278yxb.25.2010.01.23.21.26.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 23 Jan 2010 21:26:51 -0800 (PST) Message-ID: <4B5BDA19.5010200@lerdorf.com> Date: Sat, 23 Jan 2010 21:26:49 -0800 User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Tim Starling CC: PHP internals References: <4B4DABED.4060202@easyflirt.com> <4B4DFBDE.1020906@lerdorf.com> <4B4E5943.3000706@wikimedia.org> <4B4E5D5B.9020805@zend.com> <4B4E6BE5.1070404@wikimedia.org> <4B4E79A6.2010904@zend.com> <4B4E8D15.60508@wikimedia.org> <57792e851001212136h12d7effaldeb75869808d8350@mail.gmail.com> <57792e851001221857m7954ee3ag4485d5cd695b6126@mail.gmail.com> <4B5A75B4.1080403@wikimedia.org> <57792e851001231226j5f7e6552s16a7a5aa80e8ea2e@mail.gmail.com> <4B5B6911.2080009@lerdorf.com> <4B5BB438.30906@wikimedia.org> In-Reply-To: <4B5BB438.30906@wikimedia.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] About optimization From: rasmus@lerdorf.com (Rasmus Lerdorf) Tim Starling wrote: > That's not the world I live in. I work on a pure-PHP application which > is widely used on servers where the installing user does not have the > ability to change their php.ini or to install extensions or middleware. > The same application (with a few small extensions in C/C++) is used to > run one of the largest destinations on the Web. It all works just fine, > and you sell PHP short when you imply that it can't do this. We're not > going to fork MediaWiki just because you think it can't be done: it can > be done and we're doing it. But aren't the people who have large installs also likely to be running on something slightly beyond an $10/month shared hosting account? I bet a mediawiki extension would be quite popular with the dedicated server users along with all the slicehost/linode folks who splurge and pay $40/month for their hosting. > The original poster suggested an optimisation pass post-compile, which > obviously doesn't break anything because there's extensions that do it > already. So I don't know who you're arguing against. I'm not arguing against anything, simply explaining how we got here. I am all for optimizations that don't break everything. In the case of a post-compile optimization pass nobody has been able to write one that could speed up normal code without caching the optimized opcodes. We do have pecl/optimizer which works in conjunction with APC. It can easily be made to work without APC, but there isn't much point since the pass always takes longer than the execution time it can save unless the code being optimized is absolutely horrendous. We have also played with some of your other ideas in the past, but I suppose most of the core devs are somewhat spoiled by not needing to run an entire Wikipedia clone on a $10 shared hosting account. All I can say on this is, send some patches to the list. PHP improves through code. -Rasmus