Obtain the canonical [CompressOnce] compressor for segments. The compressor will create seekable [Zstd] archives with a max frame size of 4KiB. That is, seeking to an arbitrary byte offset (of the uncompressed segment) within the archive will decompress 4KiB of data on average.
()
| 442 | /// of 4KiB. That is, seeking to an arbitrary byte offset (of the uncompressed |
| 443 | /// segment) within the archive will decompress 4KiB of data on average. |
| 444 | pub fn segment_compressor() -> Zstd { |
| 445 | Zstd { |
| 446 | max_frame_size: Some(0x1000), |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | fn segment_label<R: Repo>(repo: &R, offset: u64) -> String { |
| 451 | repo.segment_file_path(offset) |
no outgoing calls
no test coverage detected
searching dependent graphs…