FastPFor icon indicating copy to clipboard operation
FastPFor copied to clipboard

Function to compute or estimate compressed size

Open maximecaron opened this issue 10 years ago • 4 comments

in "FastPFor/headers/codecs.h" virtual std::vector<uint32_t> compress(const std::vector<uint32_t> & data) Is it possible to compute the size of the compressed output or a close approximation instead of allocating a big chunk and resizing it later.?

maximecaron avatar Feb 05 '14 22:02 maximecaron

Absolutely, it is possible. And no, it is not implemented. ;-)

So this is a very valid "feature request".

lemire avatar Feb 05 '14 22:02 lemire

Good day, If it is possible to calculate the size of the compressed output , how can i do this??

Soficlyopathrmiss avatar May 11 '15 06:05 Soficlyopathrmiss

compressed_output.size() can get me the total size of compressed output in bits??

Soficlyopathrmiss avatar May 11 '15 06:05 Soficlyopathrmiss

@Soficlyopathrmiss You'll have to be more specific regarding your question.

lemire avatar Mar 08 '16 19:03 lemire