-Varun -
(My Blog) - Online Certifications - Webner Solutions
9000 objects * 16000 bits = 144 million bits = 18MB or 17.1MiBSo first problem is serialized file is taking 16 MB space on disk. I converted BitSets into BigInteger objects, but still size is about 8 MB. Any other idea to store same info with less disk space?
I don't think we disagree---isn't that what I said or was I unclear? Or am I misunderstanding you?!It sounds like we're interpreting the situation differently here. I thought that a single BitSet has 16000 bits. I can create one of those and serialize it, and the result has a size of 2072 bytes
-Varun -
(My Blog) - Online Certifications - Webner Solutions
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by Tim Holloway:
Depending on your data, the persistent copy may benefit from some sort of compression technique. On a long-ago study, a company I worked for found that they could save both disk space AND CPU time by compressing data. The overhead of the compression was offset by the fact that the data-moving code had so much less data to move.
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Originally posted by Tim Holloway:
WThis could be simple run-length encoding or something complex like Lempel-Ziv.
Originally posted by Pat Farrell:
LZ/LZW is a really bad fit for this application. And run length encoding only works if the bit density is really high. I'd stay away from either of them, completely.
I don't agree that JNI is needed. But it may be worthwhile to just use a bit vector
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Originally posted by Mike Simmons:
[Pat]: And run length encoding only works if the bit density is really high.
Or really low, yes?
-Varun -
(My Blog) - Online Certifications - Webner Solutions
I'm doing laundry! Look how clean this tiny ad is:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|