-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Streaming decompression #394
Comments
This can be done without a streaming api. As the name imply, a streaming api means that we are reading sequentially the content (no random access). This is the opposite of what we do in libzim. The buffer interface with a |
I target the compression API found in template<typename INFO>
std::unique_ptr<char[]> uncompress(const zim::Reader* reader, zim::offset_t startOffset, zim::zsize_t* dest_size); which can only be used to decompress all of data hiding behind a reader. By streaming API I mean a use model where I can create a decompressor object functionally equivalent to a C++ Pseudocode:
|
We have this in our git history (#44) |
Partial cluster decompression (#78) can be done if the decompression API provides a means to read and parse the data in a streaming fashion. Such an API will also enable representing in-memory clusters corresponding to compressed on-disk clusters as proposed in #395.
The text was updated successfully, but these errors were encountered: