gendx/lzma-rs

add `xz_decompress_with_options` API

オープン

#110 opened on 2024/05/05

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (37 件のフォーク)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (151 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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 set memlimit. Then the user need not store the entire file in memory.

Similar to #49

コントリビューターガイド