Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 472BE11601 for ; Fri, 16 May 2014 22:51:47 +0000 (UTC) Received: (qmail 29511 invoked by uid 500); 16 May 2014 11:44:08 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 1449 invoked by uid 500); 16 May 2014 11:22:52 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 31073 invoked by uid 99); 16 May 2014 11:08:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 11:08:35 +0000 Date: Fri, 16 May 2014 11:08:35 +0000 (UTC) From: "Benedict (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-7244) Don't allocate a Codec.Flag enum value array on every read 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/CASSANDRA-7244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedict updated CASSANDRA-7244: -------------------------------- Attachment: 7244.txt > Don't allocate a Codec.Flag enum value array on every read > ---------------------------------------------------------- > > Key: CASSANDRA-7244 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7244 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Benedict > Assignee: Benedict > Priority: Minor > Labels: performance > Fix For: 2.1 rc1 > > Attachments: 7244.txt > > > In QueryOptions.Codec.Flag.deserialize() we call Flag.values(), which constructs a copy of the Enum array each time. Since we only use this lookup the enums, and since it happens _often_, this is pretty wasteful. It seems to make a few % difference to throughput. -- This message was sent by Atlassian JIRA (v6.2#6252)