Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF7A011CAE for ; Wed, 11 Jun 2014 02:34:18 +0000 (UTC) Received: (qmail 16573 invoked by uid 500); 11 Jun 2014 02:34:02 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 16526 invoked by uid 500); 11 Jun 2014 02:34:02 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 16515 invoked by uid 99); 11 Jun 2014 02:34:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2014 02:34:02 +0000 Date: Wed, 11 Jun 2014 02:34:02 +0000 (UTC) From: "Tsz Wo Nicholas Sze (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-10674) Rewrite the PureJavaCrc32 loop for performance improvement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-10674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo Nicholas Sze updated HADOOP-10674: ----------------------------------------- Attachment: c10674_20140610.patch c10674_20140610.patch: - performance improvement from 45% to 60%; - using java.util.zip.CRC32 for Java 7 or above. > Rewrite the PureJavaCrc32 loop for performance improvement > ---------------------------------------------------------- > > Key: HADOOP-10674 > URL: https://issues.apache.org/jira/browse/HADOOP-10674 > Project: Hadoop Common > Issue Type: Improvement > Components: performance, util > Reporter: Tsz Wo Nicholas Sze > Assignee: Tsz Wo Nicholas Sze > Attachments: c10674_20140609.patch, c10674_20140609b.patch, c10674_20140610.patch > > > Below are some performance improvement opportunities performance improvement in PureJavaCrc32. > - eliminate "off += 8; len -= 8;" > - replace T8_x_start with hard coded constants > - eliminate c0 - c7 local variables > In my machine, there are 30% to 50% improvement for most of the cases. -- This message was sent by Atlassian JIRA (v6.2#6252)