Conversation
|
Hello, Thank you for the PR. I don't use this type of compression but seems very promising. I think I will have the user manually install the zstandard lib with pip3 (will be documented in the wiki), and check if the lib is installed when using this option. Thanks again, much appreciated 👍 |
Sounds fair.
Yep, I compress all my local data with zstd. zstd is basically a better alternative to gzip/zlib. It creates smaller archives that decompress much faster. In fact, I get better performance searching over a zstd compressed file than searching over a decompressed file because I get limited by my disk io in both cases. Thanks for creating h8mail btw! It makes life much easier. I especially love the fact that it supports multi-threading when searching over local data. |
| </h1> | ||
|
|
||
| [](https://pypi.org/project/h8mail/) [](https://badge.fury.io/py/h8mail) | ||
| [](https://pypi.org/project/h8mail/) [](https://pepy.tech/project/h8mail) [](https://travis-ci.org/khast3x/h8mail) |
h8mail/utils/run.py
Outdated
| if user_args.single_file: | ||
| local_found = local_search_single_zstd(res, targets) | ||
| else: | ||
| local_found = local_zstd_search(res, targets) |
Zstandard, or
zstdas short version, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios.This PR adds support for searching through zst files using the zstandard Python bindings.
It works and gets the job done for now. Additional things that can be done:
localzstdsearch.pyandlocalgzipsearch.pyto reduce code duplicationutf-8