cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-5020) Time to switch back to byte[] internally?
Date Mon, 30 Sep 2013 03:59:25 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-5020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Ellis updated CASSANDRA-5020:
--------------------------------------

    Assignee: T Jake Luciani

> Time to switch back to byte[] internally?
> -----------------------------------------
>
>                 Key: CASSANDRA-5020
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5020
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: T Jake Luciani
>              Labels: performance
>             Fix For: 2.1
>
>
> We switched to ByteBuffer for column names and values back in 0.7, which gave us a short
term performance boost on mmap'd reads, but we gave that up when we switched to refcounted
sstables in 1.0.  (refcounting all the way up the read path would be too painful, so we copy
into an on-heap buffer when reading from an sstable, then release the reference.)
> A HeapByteBuffer wastes a lot of memory compared to a byte[] (5 more ints, a long, and
a boolean).
> The hard problem here is how to do the arena allocation we do on writes, which has been
very successful in reducing STW CMS from heap fragmentation.  ByteBuffer is a good fit there.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message