You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-d, --debug print huffman code dictionary and performance times
20
+
-d, --debug print huffman code dictionary and performance times to stdout
19
21
20
22
Commands:
21
23
c compress a file
@@ -26,10 +28,10 @@ Command Options:
26
28
27
29
Examples:
28
30
entreepy -d c text.txt -o text.txt.et
29
-
entreepy -ptd d text.txt.et
31
+
entreepy -ptd d text.txt.et -o decoded_text.txt
30
32
```
31
33
32
-
Input file must be < 1 terabyte. I recommend keeping an uncompressed backup or testing the program's decompression before deleting the original, the program hasn't been robustly tested. Be sure to use the same version of the program to decompress as compress.
34
+
Input file must be < 1 terabyte. Be sure to use the same version of the program to decompress as compress.
33
35
34
36
### Performance
35
37
@@ -41,20 +43,23 @@ I use a decode map which is keyed by the integer value of the code and stores a
41
43
42
44
By utilizing this decode map, decoding can be performed much more quickly than by traversing a binary tree.
43
45
44
-
#### Performance on MacBook Air M2, 8 GB RAM - v0.5.0
46
+
#### Performance on MacBook Air M2, 8 GB RAM - v1.0.0
45
47
| File | Original File Size | Compressed Size | Compression Time | Decompression Time |
|[The Complete Works of Shakespeare](https://ocw.mit.edu/ans7870/6/6.006/s08/lecturenotes/files/t8.shakespeare.txt)| ~ 5.2 MB | ~ 3.0 MB | 111ms | 11.8s |
52
+
53
+
Next I'll add block based parallel decoding. After that I'm interested in exploring additional compression techniques; to support non-text file formats.
50
54
51
55
### Compressed File Format
52
56
53
57
Uses the `.et` file format, identified by the magic number `e7 c0 de`.
0 commit comments