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 2C4C3932F for ; Thu, 27 Oct 2011 18:28:54 +0000 (UTC) Received: (qmail 3024 invoked by uid 500); 27 Oct 2011 18:28:53 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 2983 invoked by uid 500); 27 Oct 2011 18:28:53 -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 2909 invoked by uid 99); 27 Oct 2011 18:28:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 18:28:53 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 18:28:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 524703233B3 for ; Thu, 27 Oct 2011 18:26:33 +0000 (UTC) Date: Thu, 27 Oct 2011 18:26:33 +0000 (UTC) From: "Doug Cutting (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <884658134.25806.1319739993338.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1545843940.16399.1319132050748.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7761) Improve performance of raw comparisons 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-7761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13137361#comment-13137361 ] Doug Cutting commented on HADOOP-7761: -------------------------------------- Do you think there's any point in trying to push the support for offsets upstream into Guava? > Improve performance of raw comparisons > -------------------------------------- > > Key: HADOOP-7761 > URL: https://issues.apache.org/jira/browse/HADOOP-7761 > Project: Hadoop Common > Issue Type: Improvement > Components: io, performance, util > Affects Versions: 0.23.0 > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Fix For: 0.24.0 > > Attachments: hadoop-7761.txt, hadoop-7761.txt, hadoop-7761.txt, hadoop-7761.txt > > > Guava has a nice implementation of lexicographical byte-array comparison that uses sun.misc.Unsafe to compare unsigned byte arrays long-at-a-time. Their benchmarks show it as being 2x more CPU-efficient than the equivalent pure-Java implementation. We can easily integrate this into WritableComparator.compareBytes to improve CPU performance in the shuffle. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira