Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52492 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55684 invoked from network); 21 May 2011 05:07:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2011 05:07:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 93.190.64.35 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 93.190.64.35 mail-5.de-punkt.de Received: from [93.190.64.35] ([93.190.64.35:57587] helo=mail-5.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/51-37199-3A847DD4 for ; Sat, 21 May 2011 01:07:49 -0400 Received: (qmail 23454 invoked by uid 511); 21 May 2011 05:07:44 -0000 Received: by simscan 1.3.1 ppid: 23450, pid: 23452, t: 0.0653s scanners: attach: 1.4.0 Received: from unknown (HELO ?0.0.0.0?) (sb%sebastian-bergmann.de@217.114.76.105) by 0 with ESMTPA; 21 May 2011 05:07:44 -0000 Message-ID: <4DD748A0.9020004@php.net> Date: Sat, 21 May 2011 07:07:44 +0200 Organization: PHP Development Team User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: internals@lists.php.net References: <4DD63451.10408@zend.com> In-Reply-To: <4DD63451.10408@zend.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] arithmetic speedup From: sebastian@php.net (Sebastian Bergmann) On 05/20/2011 11:28 AM, Dmitry Stogov wrote: > The bench.php gets more than 10% speedup (2.5 sec instead of 2.9 sec) > Real-life applications are not affected. All the PHPT tests are passed. I chatted with Kore Nordmann, the creator of Image_3D (raytracer written in PHP) and ezcGraph (chart component in the Zeta Components library) last night. His code will definitely benefit from these improvements. Another performance improvement with regards to math functionality in PHP could be compiling math functions such as abs() into specialized opcodes thus alleviating the function call overhead that is otherwise incurred. Kore mentioned, for example, that Xdebug and KCacheGrind currently show that most time is spent in several hundred thousand calls to abs() while running the component's test suite. -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/