-
Notifications
You must be signed in to change notification settings - Fork 3
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
Possibility to compress/decompress in smaller segments instead of all at once? #3
Comments
Hello, @TomArrow :) |
Ah, I see. I actually managed to do it myself in the end. I ended up using the classic LZMA SDK API with multithreading and an std::condition_variable. So I start the encoding on a separate thread and then in the Read() callback I just do the waiting until I can deliver as much as the LZMA SDK is asking for before I return. Here's the code if you're curious: https://github.com/TomArrow/JK2DemoCutter/blob/master/shared/files_lzma.hpp Obviously not terribly elegant but I think as a proof of concept it works and one could probably do something similar without multithreading by modifying the API. |
Great job! I'm planning to at least update the backend to use some of the latest code from the Could be I add support for data chunks eventually. But I can't promise anything. |
Hi,
this looks like a pretty cool library, but is there any way to compress/decompress smaller segments? I have a use case where I might wanna continuously keep adding data byte by byte until everything's all finished up, and the same for reading.
Cheers
The text was updated successfully, but these errors were encountered: