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 D265A9806 for ; Sat, 7 Apr 2012 01:07:40 +0000 (UTC) Received: (qmail 79854 invoked by uid 500); 7 Apr 2012 01:07:40 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 79816 invoked by uid 500); 7 Apr 2012 01:07:40 -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 79807 invoked by uid 99); 7 Apr 2012 01:07:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Apr 2012 01:07:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Sat, 07 Apr 2012 01:07:39 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 493A035D9FB for ; Sat, 7 Apr 2012 01:07:19 +0000 (UTC) Date: Sat, 7 Apr 2012 01:07:19 +0000 (UTC) From: "Tim Broberg (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1696533261.870.1333760839301.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <665958450.377.1333753815816.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-8258) Add interfaces for compression codecs to use direct byte buffers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-8258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249108#comment-13249108 ] Tim Broberg commented on HADOOP-8258: ------------------------------------- It's certainly trying to address the same thing, but then I haven't addressed the (arguably more important) stream layer at all yet. I'm not proud, feel free to kill whichever one you think is the weakling, but do please review the proposed interface. I'm actually writing some code to it now, so any weaknesses you can find in the interface sooner rather than later would be appreciated. > Add interfaces for compression codecs to use direct byte buffers > ---------------------------------------------------------------- > > Key: HADOOP-8258 > URL: https://issues.apache.org/jira/browse/HADOOP-8258 > Project: Hadoop Common > Issue Type: New Feature > Components: io, native, performance > Affects Versions: 3.0.0 > Reporter: Todd Lipcon > > Currently, the codec interface only provides input/output functions based on byte arrays. Given that most of the codecs are implemented in native code, this necessitates two extra copies - one to copy the input data to a direct buffer, and one to copy the output data back to a byte array. We should add interfaces to Decompressor/Compressor that can work directly with direct byte buffers to avoid these copies. -- 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