You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benedict (JIRA)" <ji...@apache.org> on 2014/05/16 13:08:35 UTC
[jira] [Updated] (CASSANDRA-7244) Don't allocate a Codec.Flag enum
value array on every read
[ 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)