Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 69080 invoked from network); 10 Feb 2010 04:16:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2010 04:16:49 -0000 Received: (qmail 91177 invoked by uid 500); 10 Feb 2010 04:16:49 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 91109 invoked by uid 500); 10 Feb 2010 04:16:49 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 91099 invoked by uid 99); 10 Feb 2010 04:16:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2010 04:16:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2010 04:16:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EEBA8234C052 for ; Tue, 9 Feb 2010 20:16:27 -0800 (PST) Message-ID: <1991048356.171121265775387976.JavaMail.jira@brutus.apache.org> Date: Wed, 10 Feb 2010 04:16:27 +0000 (UTC) From: "Kay Kay (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-2208) TableServers # processBatchOfRows - converts from List to [ ] - Expensive copy In-Reply-To: <478533347.169421265766988329.JavaMail.jira@brutus.apache.org> 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/HBASE-2208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831849#action_12831849 ] Kay Kay commented on HBASE-2208: -------------------------------- did you mean avro or s.th similar will replace the rpc as discussed by ryan in the irc ? i was looking at trunk > TableServers # processBatchOfRows - converts from List to [ ] - Expensive copy > ------------------------------------------------------------------------------------ > > Key: HBASE-2208 > URL: https://issues.apache.org/jira/browse/HBASE-2208 > Project: Hadoop HBase > Issue Type: Improvement > Reporter: Kay Kay > > With autoFlush to false and a large write buffer on HTable, when we write bulk puts - TableServer # processBatchOfRows , convert the input (List) to an [ ] , before sending down the wire. > With a write buffer as large as 20 MB , that becomes an expensive copy when we do - list.toArray(new T[ ] ). > May be - should we change the wire protocol to support List as well , and then revisit this to prevent the bulk copy ? > {code} > Batch b = new Batch(this) { > @Override > int doCall(final List currentList, final byte [] row, > final byte [] tableName) > throws IOException, RuntimeException { > *final Put [] puts = currentList.toArray(PUT_ARRAY_TYPE);* > return getRegionServerWithRetries(new ServerCallable(this.c, > tableName, row) { > public Integer call() throws IOException { > return server.put(location.getRegionInfo().getRegionName(), puts); > } > }); > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.