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 1D7A711D8E for ; Thu, 3 Jul 2014 00:04:25 +0000 (UTC) Received: (qmail 65991 invoked by uid 500); 3 Jul 2014 00:04:24 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 65940 invoked by uid 500); 3 Jul 2014 00:04:24 -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 65926 invoked by uid 99); 3 Jul 2014 00:04:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 00:04:24 +0000 Date: Thu, 3 Jul 2014 00:04:24 +0000 (UTC) From: "Tsz Wo Nicholas Sze (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-10778) Use NativeCrc32 only if it is faster 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-10778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo Nicholas Sze updated HADOOP-10778: ----------------------------------------- Attachment: c10778_20140702.patch c10778_20140702.patch: - decides whether to native or not; - improves the loops for verifying chunked crcs; - adds Crc32PerformanceTest. > Use NativeCrc32 only if it is faster > ------------------------------------ > > Key: HADOOP-10778 > URL: https://issues.apache.org/jira/browse/HADOOP-10778 > Project: Hadoop Common > Issue Type: Improvement > Components: util > Reporter: Tsz Wo Nicholas Sze > Assignee: Tsz Wo Nicholas Sze > Attachments: c10778_20140702.patch > > > From the branch mark post in [this comment|https://issues.apache.org/jira/browse/HDFS-6560?focusedCommentId=14044060&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14044060], NativeCrc32 is slower than java.util.zip.CRC32 for Java 7 and above when bytesPerChecksum > 512. -- This message was sent by Atlassian JIRA (v6.2#6252)