Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to compute or estimate compressed size #12

Open
maximecaron opened this issue Feb 5, 2014 · 4 comments
Open

Function to compute or estimate compressed size #12

maximecaron opened this issue Feb 5, 2014 · 4 comments

Comments

@maximecaron
Copy link
Collaborator

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.?

@lemire
Copy link
Member

lemire commented Feb 5, 2014

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

So this is a very valid "feature request".

@Soficlyopathrmiss
Copy link

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

@Soficlyopathrmiss
Copy link

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

@lemire
Copy link
Member

lemire commented Mar 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants