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 2259A11D7D for ; Mon, 12 May 2014 01:36:57 +0000 (UTC) Received: (qmail 69742 invoked by uid 500); 10 May 2014 22:02:53 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 47111 invoked by uid 500); 10 May 2014 22:01:23 -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 13643 invoked by uid 99); 10 May 2014 21:58:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 21:58:58 +0000 Date: Sat, 10 May 2014 21:58:58 +0000 (UTC) From: "Mikhail Antonov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11147) Avoid creating List of KeyValue in FilterBase#filterRowCells(List) 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-11147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13993932#comment-13993932 ] Mikhail Antonov commented on HBASE-11147: ----------------------------------------- Unless I'm missing something, you can't do (ignored instanceof List), because of type erasure in generic? > Avoid creating List of KeyValue in FilterBase#filterRowCells(List) > ------------------------------------------------------------------------ > > Key: HBASE-11147 > URL: https://issues.apache.org/jira/browse/HBASE-11147 > Project: HBase > Issue Type: Task > Reporter: Ted Yu > Priority: Minor > > Currently a List of KeyValue's is always created: > {code} > List kvs = new ArrayList(ignored.size()); > {code} > When passed ignored List is of KeyValue (which is the only implementation of Cell at the moment), the above step should be avoided. > This would reduce creation of short-lived objects. -- This message was sent by Atlassian JIRA (v6.2#6252)