cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedict (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-7244) Don't allocate a Codec.Flag enum value array on every read
Date Fri, 16 May 2014 11:08:35 GMT

     [ 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)

Mime
View raw message