Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45384 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47888 invoked from network); 25 Aug 2009 06:44:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2009 06:44:39 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:50274] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/52-33714-558839A4 for ; Tue, 25 Aug 2009 02:44:38 -0400 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id 448C9E1245; Mon, 24 Aug 2009 23:31:50 -0700 (PDT) Received: from [192.168.27.6] ([192.168.27.6]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 24 Aug 2009 23:40:15 -0700 Message-ID: <4A938706.8060600@zend.com> Date: Mon, 24 Aug 2009 23:39:02 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Ilia Alshanetsky CC: Greg Beaver , 'PHP Internals' References: <4A92D936.2010107@zend.com> <4A931A1C.804@chiaraquartet.net> <39F20BFC-DAA0-4403-A52E-62CE5F4CF0FE@prohost.org> <4A9346CA.3070608@chiaraquartet.net> <4B0E7BED-C2AE-4BE5-B6CA-00B810168961@prohost.org> In-Reply-To: <4B0E7BED-C2AE-4BE5-B6CA-00B810168961@prohost.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Aug 2009 06:40:16.0062 (UTC) FILETIME=[E7D47DE0:01CA254E] Subject: Re: [PHP-DEV] Re: [patch] error masks From: stas@zend.com (Stanislav Malyshev) Hi! > If you enable error log you would be able to identify errors, even in > legacy code fairly quickly and address them as needed. The speed > increase, by Stas' own admission is very minimal here, I would wager It's not "very minimal". It's not big overall, but it speeds up operations affected 300-400%. Can you propose many other changes that would speed up any set of opcodes 300% in 10 lines of patch? ;) > saving memory and eliminating what effectively is a NOOP is a good idea, > making it a configurable, user settable option, will simply lead to much > abuse. There would be no "abuse" that is not happening today, in almost every production install on Earth. Through the whole scenario you have consistently ignored the fact that we talk about errors that are *ignored* today, and only evidence of their general existence somewhere in the code is the slowdown - which is not measurable anyway, since there's no base for comparison, since there's no way to run _without_ the slowdown without this patch. > If the ultimate goal here is to save memory, why not simply set the mask > to 0, which if understand Stas' original message correctly would equate > its value to whatever the error reporting is set to. You can, of course. But, as I explained, because there could be scenarios when you (ok, not you, somebody else) would want to use advanced tools which do not use error_reporting setting but have their own decision mechanisms, and you may be ready to pay the memory/speed penalty, say, for more accurate error statistics, etc. - at least temporary or on the part of your setup. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com