Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 58236 invoked from network); 5 Aug 2008 07:32:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 07:32:18 -0000 Received: (qmail 26162 invoked by uid 500); 5 Aug 2008 07:32:13 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 26140 invoked by uid 500); 5 Aug 2008 07:32:13 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 26128 invoked by uid 99); 5 Aug 2008 07:32:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 00:32:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xiaofeng.li@gmail.com designates 64.233.166.180 as permitted sender) Received: from [64.233.166.180] (HELO py-out-1112.google.com) (64.233.166.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 07:31:18 +0000 Received: by py-out-1112.google.com with SMTP id u52so1044446pyb.13 for ; Tue, 05 Aug 2008 00:31:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=TLDedaQd4lBUS8HX8borBnMC3ckufR29OFtsLjAe/lc=; b=DPWUMHYwoGQDzW0oV4ULIoAjZkNYi7VdWmflYEmx6bQoLYe8nXuLoKtZOxzf+kQr2c xiR5TUIFQ7SWGgNNdWfhtjcWt1f2l8VHjs0nGbjSEDUc9fbdl4zmAE28rT6mRbMVe1NT 9zXcDgxtG5aSe4SRlfe2T3yXHOzlcOa4yTnJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Hc/KXCW3LWfoCIlCyIXpDP50iTBsPDLrYnc7+GK9NFk1tbJ0N2v4R/hnpeufG9vGSQ P451fSxrFuyz+QpskGKFA5C7JdQndId+cvpWcV8Mw7jmR99C2nuuLIiZNOf2WxrjzuR8 7n6ktR+FvtTPTA1VoXckB4xsHjw257+oLzfLQ= Received: by 10.64.210.11 with SMTP id i11mr255861qbg.4.1217921504591; Tue, 05 Aug 2008 00:31:44 -0700 (PDT) Received: by 10.64.21.18 with HTTP; Tue, 5 Aug 2008 00:31:44 -0700 (PDT) Message-ID: <9623c9a50808050031r50db32fcl693bf494890a3940@mail.gmail.com> Date: Tue, 5 Aug 2008 15:31:44 +0800 From: "Xiao-Feng Li" To: dev@harmony.apache.org Subject: Re: patch for HARMONY-5901 is ready In-Reply-To: <4bebff790808050011n7b7f5906x6bb563ec19770c11@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <255079590808042103r39efdb66g8f79eeb9d6045888@mail.gmail.com> <4bebff790808050011n7b7f5906x6bb563ec19770c11@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org There are more situations that strength reduction can be applicable. Do we want to make the optimization a general solution or just keep it case by case? Thanks, xiaofeng On Tue, Aug 5, 2008 at 3:11 PM, Aleksey Shipilev wrote: > On Tue, Aug 5, 2008 at 8:03 AM, xiaoming gu wrote: >> Hi, guys. The patch for harmony-5901 is ready. > At last! Thanks, Xioaming! > >> I compared the performance for all the 5 benchmarks in "Java vs. C >> benchmark" by Stefan Krause on my desktop >> workstation (Intel Core 2 Quad Q9550@2.83GHz, 3.23G RAM, Windows XP SP2). >> With MUL/DIV replaced by shift, >> spectralnorm is improved more than 29% (from 450258 msec to 319578 msec) > Can you spend some time and measure how much boost there is, in case > your _manual_ change of MUL/DIV operations to shifts? I had measured > +60% boost, so it would be great to conclude whether yours +30% is > connected with patch overheads (handling negative operands, I guess) > or your environment. > > Thanks, > Aleksey. > -- http://xiao-feng.blogspot.com