File Unzip using miniz-cpp library#1098
File Unzip using miniz-cpp library#1098jw098 wants to merge 12 commits intoPokemonAutomation:mainfrom
Conversation
|
Do we know how well this handles really large files? Say you try to unzip a 10GB file. Does it store the whole thing in memory? (10GB memory usage) Are there any progress indicators while it's decompressing a large file? Or does it just hang until it returns? |
Hmm. This will require looking deeper into the C API. The C++ wrapper can't do what you're asking. I'll look into it. |
|
This can potentially get really intrusive depending on how the library is currently written. We'd also need to design an API to expose the progress. What I envision is that in the table showing all the resources, when the user click Most likely is that we inject a callback into the unzip routine that will be periodically called so we can update the UI with the % completed. This may need to go hand-in-hand with splitting up a large file so we don't hold the entire thing in memory. IOW, a lot of investigation to be done. |
Note: this does not extract tar files, only zip files.