mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
47210da18f
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |