Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 44897 invoked from network); 3 Apr 2008 09:13:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 09:13:26 -0000 Received: (qmail 14659 invoked by uid 500); 3 Apr 2008 09:13:25 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 14631 invoked by uid 500); 3 Apr 2008 09:13:25 -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 14622 invoked by uid 99); 3 Apr 2008 09:13:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 02:13:24 -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 t.p.ellison@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 09:12:43 +0000 Received: by fg-out-1718.google.com with SMTP id 16so2775699fgg.36 for ; Thu, 03 Apr 2008 02:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=I5/z3RXbfJfZZ7FSblJupKsri/2cILCztDfAp47idSA=; b=PJmcVoDlcqWa+LNLcqRBnohsN59oChGyW1sJrFv/lpeG979fcdYxlQywlZZ4d7poWrBCezHvBkuJj+KvNyEgzWCcwPq7surnnDd0anY01JYLhTav+9lszaD2edtReJKAcDRLGtB4oQ5/EHLBcXz2aphJ0WzCzvp+k+vRCu2VBFU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=VU/L/4Q4gND8g9El9hEPQE+Zvq7rBJSzdKpuLNqeOziy3lb0ZMSIuukzyu8jXrFzkMQEq4G70GBDFx5G0nQL3kAzNKXpwZPQL/28FW7jurjktOWnVKrVeIoT0MhaWjoFqGiRaZnFwwiCFjSVDJWJ273tTJElICAlmPVmbzA/gVs= Received: by 10.82.115.8 with SMTP id n8mr25385689buc.35.1207213974400; Thu, 03 Apr 2008 02:12:54 -0700 (PDT) Received: from ?9.20.183.76? ( [195.212.29.92]) by mx.google.com with ESMTPS id m5sm4153306gve.9.2008.04.03.02.12.52 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Apr 2008 02:12:53 -0700 (PDT) Message-ID: <47F49F28.8050003@gmail.com> Date: Thu, 03 Apr 2008 10:11:04 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: [classlib][pack200] Sped up hashCode and removed dead getCpAll() (HARMONY-5682) References: <2083037913.1207161568650.JavaMail.jira@brutus> In-Reply-To: <2083037913.1207161568650.JavaMail.jira@brutus> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Andrew Cornwall (JIRA) wrote: > I didn't do that because I assumed the overhead of the exception > handler would be too much. But it's worth a try - so I just did. Here > are the results for my testcase: > > CpClass 0.685 3.066 Without exception handler: 0.685 s With exception > handler: 3.066 s > > CpRef Without exception handler: 1.204 s With exception handler: > 1.873 s > > CPUTF8 Without exception handler: 2.323 s With exception handler: > 6.761 s > > In other words, with exception handlers our time for hashCode almost > doubles. Since hashCode accounts for slightly more than 10% of the > total time of the test case with the exception handlers and less than > 4% without, I'm inclined to leave the exceptions uncaught. Interesting. Are you running those tests with the IBM VM or the DRLVM? I'm assuming that the difference in performance is due to the JITs reluctance to in-line the longer version of hashCode() since the exception handler itself should make no difference. Regards, Tim