Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A06DB200C04 for ; Tue, 20 Dec 2016 06:02:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9F1FE160B21; Tue, 20 Dec 2016 05:02:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 158D9160B30 for ; Tue, 20 Dec 2016 06:01:59 +0100 (CET) Received: (qmail 96168 invoked by uid 500); 20 Dec 2016 05:01:58 -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 95919 invoked by uid 99); 20 Dec 2016 05:01:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2016 05:01:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 781542C03E8 for ; Tue, 20 Dec 2016 05:01:58 +0000 (UTC) Date: Tue, 20 Dec 2016 05:01:58 +0000 (UTC) From: "binlijin (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17332) Replace HashMap to Array for DataBlockEncoding.idToEncoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Dec 2016 05:02:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] binlijin updated HBASE-17332: ----------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) > Replace HashMap to Array for DataBlockEncoding.idToEncoding > ----------------------------------------------------------- > > Key: HBASE-17332 > URL: https://issues.apache.org/jira/browse/HBASE-17332 > Project: HBase > Issue Type: Improvement > Affects Versions: 2.0.0, 1.4.0 > Reporter: binlijin > Assignee: binlijin > Fix For: 2.0.0, 1.4.0 > > Attachments: DBE.idToEncoding.png, DBE.idToEncoding_afterOptimize.png, HBASE-17332.V2.patch, HBASE-17332.V3.patch, HBASE-17332.branch-1.V1.patch, HBASE-17332.patch > > > Array is faster than HashMap also no need to autoboxing. > I can see the DataBlockEncoding#getDataBlockEncoderById is a hot method if enable encoding in my perf test(Random read, all data cache in LruBlockCache). -- This message was sent by Atlassian JIRA (v6.3.4#6332)