Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
Description
Currently when we read a compressed sstable we copy the data on heap then send it to be de-compressed to another on heap buffer (albeit pooled).
But now both snappy and lz4 (with CASSANDRA-7039) allow decompression of direct byte buffers. This lets us mmap the data and decompress completely off heap (and avoids moving bytes over JNI).
One issue is performing the checksum offheap but the Adler32 does support in java 8 (it's also in java 7 but marked private?!)
This change yields a > 10% boost in read performance on cstar. Locally I see upto 30% improvement.
Attachments
Attachments
Issue Links
- is blocked by
-
CASSANDRA-7039 DirectByteBuffer compatible LZ4 methods
-
- Resolved
-
- is related to
-
CASSANDRA-9096 Improve ByteBuffer compression interface
-
- Resolved
-
- relates to
-
CASSANDRA-15531 Improve docs on disk_access_mode, specifically post CASSANDRA-8464
-
- Open
-