We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 590c032 commit 9dbc2c3Copy full SHA for 9dbc2c3
1 file changed
src/compression/__init__.py
@@ -5,10 +5,31 @@
5
from .zstd import ZstdCompressor
6
from .gzip import GzipCompressor
7
8
+
9
+class ZstdFastCompressor(ZstdCompressor):
10
+ """Zstandard at level 3 - fast compression."""
11
12
+ name = "zstd_fast"
13
14
+ def __init__(self):
15
+ super().__init__(level=3)
16
17
18
+class ZstdMidCompressor(ZstdCompressor):
19
+ """Zstandard at level 6 - balanced compression."""
20
21
+ name = "zstd_mid"
22
23
24
+ super().__init__(level=6)
25
26
27
# Registry of available compressors
28
COMPRESSORS: dict[str, type[Compressor]] = {
29
"none": NoCompression,
30
"zstd": ZstdCompressor,
31
+ "zstd_fast": ZstdFastCompressor,
32
+ "zstd_mid": ZstdMidCompressor,
33
"gzip": GzipCompressor,
34
}
35
0 commit comments