zstd should reuse ctx to avoid huge mmap cost (#941)

This commit is contained in:
Sijie.Sun
2025-06-06 08:59:06 +08:00
committed by GitHub
parent 0314c66635
commit a6773aa549
5 changed files with 196 additions and 109 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ pub struct AesGcmTail {
}
pub const AES_GCM_ENCRYPTION_RESERVED: usize = std::mem::size_of::<AesGcmTail>();
#[derive(AsBytes, FromZeroes, Clone, Debug, Copy)]
#[derive(AsBytes, FromZeroes, Clone, Debug, Copy, PartialEq, Hash, Eq)]
#[repr(u8)]
pub enum CompressorAlgo {
None = 0,