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 51AFC10358 for ; Tue, 17 Sep 2013 20:16:07 +0000 (UTC) Received: (qmail 90411 invoked by uid 500); 17 Sep 2013 20:15:55 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 90301 invoked by uid 500); 17 Sep 2013 20:15:54 -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 90196 invoked by uid 99); 17 Sep 2013 20:15:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 20:15:52 +0000 Date: Tue, 17 Sep 2013 20:15:52 +0000 (UTC) From: "Haohui Mai (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-9669) There are multiple array creations and array copies for a single nfs rpc reply 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-9669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Haohui Mai updated HADOOP-9669: ------------------------------- Attachment: HADOOP-9669.002.patch A patch that addresses Brandon's comments. I'll address 4/5 in HADOOP-9966. > There are multiple array creations and array copies for a single nfs rpc reply > ------------------------------------------------------------------------------ > > Key: HADOOP-9669 > URL: https://issues.apache.org/jira/browse/HADOOP-9669 > Project: Hadoop Common > Issue Type: Improvement > Components: nfs > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Haohui Mai > Attachments: HADOOP-9669.001.patch, HADOOP-9669.002.patch, HADOOP-9669.patch > > > XDR.writeXxx(..) methods ultimately use the static XDR.append(..) for writing each data type. The static append creates a new array and copy data. Therefore, for a singe reply such as RpcAcceptedReply.voidReply(..), there are multiple array creations and array copies. For example, there are at least 6 array creations and array copies for RpcAcceptedReply.voidReply(..). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira