incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radim Kolar <...@sendmail.cz>
Subject optimizing index sampling for better memory usage
Date Wed, 28 Dec 2011 12:06:16 GMT
currently j.o.a.c.io.sstable.indexsummary is implemented as ArrayList of 
KeyPosition (RowPosition key, long offset)
i propose to change it to

RowPosition keys[]
long offsets[]

this will lower number of java objects used per entry from 2 
(KeyPosition + RowPosition) to 1.

For building these arrays convenient ArrayList class can be used and 
then call to .toArray() on it.

Mime
View raw message