Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 99820 invoked from network); 28 Aug 2008 13:55:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 13:55:05 -0000 Received: (qmail 43659 invoked by uid 500); 28 Aug 2008 13:55:03 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 43640 invoked by uid 500); 28 Aug 2008 13:55:03 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 43629 invoked by uid 99); 28 Aug 2008 13:55:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 06:55:03 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 13:54:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75C15234C1BA for ; Thu, 28 Aug 2008 06:54:44 -0700 (PDT) Message-ID: <163020220.1219931684481.JavaMail.jira@brutus> Date: Thu, 28 Aug 2008 06:54:44 -0700 (PDT) From: "Andrzej Bialecki (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-849) Speed improvement in JenkinsHash In-Reply-To: <944549677.1219930784514.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrzej Bialecki updated HBASE-849: ------------------------------------ Attachment: TestHash.java This simple test calculates the hash a number of times (e.g. 100 mln), both using the patched version and the old version. Additionally, it checks whether output values are equal. Results show a ~3 times speed improvement: Speed JenkinsHash: - 49578 ms Speed JenkinsHashOld: - 155266 ms Regression... - ok. > Speed improvement in JenkinsHash > -------------------------------- > > Key: HBASE-849 > URL: https://issues.apache.org/jira/browse/HBASE-849 > Project: Hadoop HBase > Issue Type: Improvement > Components: util > Affects Versions: 0.2.1 > Reporter: Andrzej Bialecki > Fix For: 0.2.1 > > Attachments: jenkins.patch, TestHash.java > > > The JenkinsHash implementation frequently uses a pattern Long.valueOf( ..expr..). This is costly, because each time the JVM implicitly creates a new Long object. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.