Return-Path: X-Original-To: apmail-hama-dev-archive@www.apache.org Delivered-To: apmail-hama-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0CA0DD6F for ; Wed, 7 Nov 2012 05:06:17 +0000 (UTC) Received: (qmail 74525 invoked by uid 500); 7 Nov 2012 05:06:16 -0000 Delivered-To: apmail-hama-dev-archive@hama.apache.org Received: (qmail 74418 invoked by uid 500); 7 Nov 2012 05:06:16 -0000 Mailing-List: contact dev-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hama.apache.org Delivered-To: mailing list dev@hama.apache.org Received: (qmail 74324 invoked by uid 99); 7 Nov 2012 05:06:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 05:06:13 +0000 Date: Wed, 7 Nov 2012 05:06:13 +0000 (UTC) From: "Edward J. Yoon (JIRA)" To: dev@hama.apache.org Message-ID: <992561510.78958.1352264773145.JavaMail.jiratomcat@arcas> In-Reply-To: <1977242265.59131.1351827972897.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HAMA-664) Add bundle size estimator 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/HAMA-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492129#comment-13492129 ] Edward J. Yoon commented on HAMA-664: ------------------------------------- {code} DataOutputStream out = new DataOutputStream(new BufferedOutputStream(outArray)); {code} Thanks but how can I convert bundle object to outArray? > Add bundle size estimator > ------------------------- > > Key: HAMA-664 > URL: https://issues.apache.org/jira/browse/HAMA-664 > Project: Hama > Issue Type: Improvement > Components: bsp core > Reporter: Edward J. Yoon > Assignee: Edward J. Yoon > Fix For: 0.6.0 > > Attachments: patch.txt > > > I noticed that calculation of bundle object size in Avro RPC and Hadoop RPC causes significant performance decrease and uses huge resources. > We should get rid of this and figure out another way to convert byte array. > {code} > ByteArrayOutputStream outArray = new ByteArrayOutputStream(); > DataOutputStream out = new DataOutputStream(outArray); > msg.write(out); > out.close(); > byte[] byteArray = outArray.toByteArray(); > {code} -- 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