Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35708 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27110 invoked by uid 1010); 21 Feb 2008 23:00:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27095 invoked from network); 21 Feb 2008 23:00:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2008 23:00:56 -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 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:44246] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/59-64513-7A20EB74 for ; Thu, 21 Feb 2008 18:00:56 -0500 Received: from [192.168.200.117] (c-24-6-219-206.hsd1.ca.comcast.net [24.6.219.206]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-3) with ESMTP id m1LN0lg2017492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 21 Feb 2008 15:00:48 -0800 Message-ID: <47BE029F.9000701@lerdorf.com> Date: Thu, 21 Feb 2008 15:00:47 -0800 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: ceo@l-i-e.com CC: internals@lists.php.net References: <001c01c87264$3c01b4e0$b4051ea0$@de> <58510.98.193.37.55.1203374232.squirrel@www.l-i-e.com> <200802181936.17739.larry@garfieldtech.com> <47BA34AB.6010408@lerdorf.com> <41103.98.193.37.55.1203622341.squirrel@www.l-i-e.com> In-Reply-To: <41103.98.193.37.55.1203622341.squirrel@www.l-i-e.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/5919/Thu Feb 21 11:44:23 2008 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] RFC: Traits for PHP From: rasmus@lerdorf.com (Rasmus Lerdorf) Richard Lynch wrote: > On Mon, February 18, 2008 7:45 pm, Rasmus Lerdorf wrote: >> The idea here is that we want to be able to cache opcodes, classes and >> functions and optimize them out of the runtime context so the executor >> can skip creating classes and functions on every single request. A >> lot >> of the traffic on this list over the past couple of months seems to >> ignore this basic premise. Features such as autoload and runtime >> object >> manipulation incur a huge performance hit in the sense that they >> change >> something that was free before and not only add the cost of the >> feature >> itself, but it also means the object in question now can no longer be >> cached and has to be created on every single request. >> >> This doesn't mean we can't consider such features, but people need to >> also consider the performance implications. > > Many users need opcode caches and performance is crucial... > > Many MORE don't, really :-) That's a bit like saying that most people don't need more money. While probably true, it certainly doesn't hurt to have much lower page latencies. Similarly, most people don't need to scale either, but that doesn't mean we should suddenly start tearing down our perfect shared nothing sandbox. If we design for good performance and scaling, the trickledown effect means that even horribly-written applications will be usable while the people who care about performance can get outstanding performance out of it. -Rasmus