Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52471 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69784 invoked from network); 20 May 2011 09:49:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2011 09:49:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:55545] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/70-01014-12936DD4 for ; Fri, 20 May 2011 05:49:22 -0400 Received: by eyf5 with SMTP id 5so1161548eyf.29 for ; Fri, 20 May 2011 02:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Vivz+19u6jF5jGCaA3rxAQ+8NUqqj7uDfl68wK8baA8=; b=RDQs/mcNe/r6wqqsNwrmHU305+SuJzHqqHIReVMpZSW5SNZw0mk3ovAQ83l4k1mBqF Mdmah3i9wISF1aBfVwS0cA6RTRbwFtQzSr/qnkN5zSsVG8GXcneWl8SsyGagXWufwWG0 FHqS43p7H6UTab6yAJf3Rzhw8UgiwNYtFQ13k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=t+UYImaHzYPG4LupkdnrzXkHbnCIW/GrgZwRkqRX5h+5Nl5dQMa++eWlIunVqgjdGf +21dCyshftvSBTEsWP5JGy6rcxBYa8xfobKPfnuwyIowUakSl1czXaU/RuzIDPsEt6i6 5Ep0l6NOjKKWTWCUCgZhZkIsq9690fAnvP9Xk= MIME-Version: 1.0 Received: by 10.14.124.15 with SMTP id w15mr1523120eeh.191.1305884958960; Fri, 20 May 2011 02:49:18 -0700 (PDT) Received: by 10.14.127.80 with HTTP; Fri, 20 May 2011 02:49:18 -0700 (PDT) In-Reply-To: <4DD63451.10408@zend.com> References: <4DD63451.10408@zend.com> Date: Fri, 20 May 2011 11:49:18 +0200 Message-ID: To: Dmitry Stogov Cc: PHP Internals , Stas Malyshev , Andi Gutmans Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PATCH] arithmetic speedup From: pierre.php@gmail.com (Pierre Joye) hi Dmitry, Nice improvements, thanks :) Any reason not to have done the changes for windows as well? What's about putting the asm code in external file so it can used by more compilers? (some has issues with inline asm, like VC in x64 mode, other may have as well afair). Cheers, On Fri, May 20, 2011 at 11:28 AM, Dmitry Stogov wrote: > Hi, > > The attached patch improves speed of numeric operations by inlining the most > probable paths directy into executor. It also optimizes some operations for > x86 CPU using assembler. > > 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'm going to commit the patch on next week if no objections. > Any related ideas are welcome. > > Thanks. Dmitry. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org