Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52476 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85771 invoked from network); 20 May 2011 10:46:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2011 10:46:05 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass 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:56598] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B5/63-01014-96646DD4 for ; Fri, 20 May 2011 06:46:04 -0400 Received: by eyf5 with SMTP id 5so1173686eyf.29 for ; Fri, 20 May 2011 03:45:56 -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 :content-transfer-encoding; bh=ZSjtua2cfFmbtHg+d942LYyPQU9k8pisTxBjpWz8xhI=; b=QijfRCrgvJEBrFKKAZFpP3zYK1w7ipDw07V5m/O4LzOi4uRSDefvPxUOlkxt2W7rLO AlnECeQ4mh+SdS3rXcFhRUqWlA5jZLDobvdkjzQc4tR7TS2erzEMIuzUqtEY9LQafmt6 Ro0+Ci/DxxH0Vq0ZG84mQ4hRG9JWEo7S/8W6Q= 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:content-transfer-encoding; b=v+DcjjiibSWJ4G4Hkoa0a8m/U2yBflD0+dXs4rYcjdX9jZVRZefrchU6xuD4E0sO74 Sry3IjQJ46SQePm+tBB5JKOIETQyXsMNcs8olQmDFFAXZNcBY5G2PiFGNp8BIZ6mRN3M vlKkb5yvXSkk6CszPtcq3YLanv6hSvg4dsGwI= MIME-Version: 1.0 Received: by 10.14.15.97 with SMTP id e73mr1444559eee.159.1305888356588; Fri, 20 May 2011 03:45:56 -0700 (PDT) Received: by 10.14.127.80 with HTTP; Fri, 20 May 2011 03:45:56 -0700 (PDT) In-Reply-To: <4DD64514.3070108@zend.com> References: <4DD63451.10408@zend.com> <4DD63C03.3090401@zend.com> <4DD64514.3070108@zend.com> Date: Fri, 20 May 2011 12:45:56 +0200 Message-ID: To: Dmitry Stogov Cc: PHP Internals , Stas Malyshev , Andi Gutmans Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PATCH] arithmetic speedup From: pierre.php@gmail.com (Pierre Joye) On Fri, May 20, 2011 at 12:40 PM, Dmitry Stogov wrote: > On 05/20/2011 02:05 PM, Pierre Joye wrote: >> >> On Fri, May 20, 2011 at 12:01 PM, Dmitry Stogov =A0wrot= e: >>> >>> Hi Pierre, >>> >>> On 05/20/2011 01:49 PM, Pierre Joye wrote: >>>> >>>> hi Dmitry, >>>> >>>> Nice improvements, thanks :) >>>> >>>> Any reason not to have done the changes for windows as well? >>> >>> Sorry, I'm not an expert in MS VC inline assembler. >>> As I remember in VC6 it was poor and didn't allow complicated things. >>> In case someone can add support for VC it would be great. >>> >>>> 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). >>> >>> The main idea of the patch is inlining and I don't know how can I inlin= e >>> from external file. >>> >>> In simple cases the function call, parameter passing, prologue, epilogu= e >>> make more overhead than the opration itself. So the inlining is >>> responsable >>> for 90% of speedup while asm optimization only for 10%. >>> >>> Thanks. Dmitry. >> >> As this patch is only GCC (and linux I suppose), > > The inlining must be done on all platforms so it should affect Windows to= o. It could be inlined and externalized, the only issue is about compiler and inline assemblers. Will test. >> I would suggest to >> simply commit in trunk right now. Other platforms can implement it >> later (I will do it for windows in the next weeks). > > I'll commit on Monday. Thanks! --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org