cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Jake Luciani (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11421) Eliminate allocations of byte array for UTF8 String serializations
Date Mon, 28 Mar 2016 12:57:25 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15214163#comment-15214163
] 

T Jake Luciani commented on CASSANDRA-11421:
--------------------------------------------

Sounds like we should just upgrade to latest netty 4.0 version vs copying over the new method
in tree

> Eliminate allocations of byte array for UTF8 String serializations
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-11421
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11421
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: Core
>            Reporter: Nitsan Wakart
>            Assignee: Nitsan Wakart
>
> When profiling a read workload (YCSB workload c) on Cassandra 3.2.1 I noticed a large
part of allocation profile was generated from String.getBytes() calls on CBUtil::writeString
> I have fixed up the code to use a thread local cached ByteBuffer and CharsetEncoder to
eliminate the allocations. This results in improved allocation profile, and a mild improvement
in performance.
> The fix is available here:
> https://github.com/nitsanw/cassandra/tree/fix-write-string-allocation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message