Portable-Network-Archive / liblzma-rs

Bindings to liblzma in Rust (xz streams in Rust)
Apache License 2.0
17 stars 5 forks source link

Enhance parallel support #61

Closed ChanTsune closed 10 months ago

garikello3d commented 10 months ago

I definitely vote for this PR. Without it, the library does not document the MtStreamBuilder, nor provides any clue that memory limit should be explicitly set for the multi-threaded decompressor. For some reason, this limit defaults to 1 (1 byte? seems like a bug?), and the decoder appears to be unusable unless you call set_memlimit on a stream.