Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 854AD10129 for ; Tue, 3 Dec 2013 04:18:38 +0000 (UTC) Received: (qmail 16576 invoked by uid 500); 3 Dec 2013 04:18:36 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 16512 invoked by uid 500); 3 Dec 2013 04:18:36 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 16499 invoked by uid 99); 3 Dec 2013 04:18:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 04:18:35 +0000 Date: Tue, 3 Dec 2013 04:18:35 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10066) Use ByteArrayOutputStream#writeTo where appropriate 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-10066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837311#comment-13837311 ] Lars Hofhansl commented on HBASE-10066: --------------------------------------- +1 (assuming trailer.setEncryptionKey is equivalent to the previous logic) > Use ByteArrayOutputStream#writeTo where appropriate > --------------------------------------------------- > > Key: HBASE-10066 > URL: https://issues.apache.org/jira/browse/HBASE-10066 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.98.0 > Reporter: Andrew Purtell > Assignee: Andrew Purtell > Priority: Minor > Fix For: 0.98.0 > > Attachments: 10066.patch > > > We can avoid some unnecessary copies by using ByteArrayOutputStream#writeTo instead of #toByteArray followed by write(). Found this in a few places. -- This message was sent by Atlassian JIRA (v6.1#6144)