sapling/async-compression
Lukas Piatkowski 47210da18f async-compression: re-add support for zstd decompression with warnings
Summary:
See the comment near "DecompressionType::OverreadingZstd" to see what it does.

Why OverreadingZstd works for Mononoke's use case? Answer:

Because we use it in bundle2 parsing, which is already chunked by the outer Reader. This means that when we have a stream of bytes:
```
uncompressed -> compressed bundle2 -> uncompressed
```
thanks to chunking we extract the compressed part:
```
do_stuff(uncompressed)
ZstdDecoder(compressed bundle2)
do_stuff(uncompressed)
```
rather than
```
do_stuff(uncompressed)
ZstdDecoder(compressed bundle2 -> uncompressed)
```
So overreading doesn't hurt us here

Reviewed By: StanislavGlebik

Differential Revision: D9700778

fbshipit-source-id: 70dd6f405ffa00fb981791aff25c60f60831ea6b
2018-09-07 09:53:25 -07:00
..
src async-compression: re-add support for zstd decompression with warnings 2018-09-07 09:53:25 -07:00
Cargo.toml Add Cargo.toml files to crates. (#7) 2018-07-09 19:52:27 -07:00