You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xz_decompress reads the entire .xz file in one call. The entire file is stored in memory. Decompressing large files can lead to Out Of Memory errors.
Solution
Provide xz_decompress_with_options, similar to other _with_options API functions. Notably, this would allow passing an Options with a set memlimit. Then the user need not store the entire file in memory.
Attempt to parse more of the XZ header and block #0 header.
Unfortunately, I couldn't figure get this working entirely. Leaving
the code in place as it does function.
The intent was to compensate for lzma-rs reading the entire file
during xz_decompress. However, that's a larger problem, see
gendx/lzma-rs#110
Issue #12
Issue 283
Problem
xz_decompress
reads the entire.xz
file in one call. The entire file is stored in memory. Decompressing large files can lead to Out Of Memory errors.Solution
Provide
xz_decompress_with_options
, similar to other_with_options
API functions. Notably, this would allow passing an Options with a setmemlimit
. Then the user need not store the entire file in memory.Similar to #49
The text was updated successfully, but these errors were encountered: