Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compressor: replace snappy with cramjam #134

Closed
wants to merge 2 commits into from
Closed

Conversation

aris-aiven
Copy link
Contributor

@aris-aiven aris-aiven commented Aug 22, 2023

About this change - What it does

Replaces the python-snappy dependency with cramjam.

Why this way

The python-snappy library is no longer maintained (see 1). Cramjam is a drop-in replacement that allows for a considerable speedup both in the compression and decompression tasks. The relevant benchmark for snappy's framed format 2.

Before we accept this PR, we should benchmark cramjam ourselves with realistic workloads.

@aris-aiven aris-aiven force-pushed the aris-cramjam-snappy branch 6 times, most recently from d39e85d to 7bcbaf7 Compare August 23, 2023 12:26
This allows using structural pattern matching
@aris-aiven aris-aiven force-pushed the aris-cramjam-snappy branch 2 times, most recently from eb942f8 to e6b789e Compare August 24, 2023 07:44
The python-snappy library is no longer maintained. Cramjam is almost a
drop-in replacement that allows for a considerable speedup both in the
compression and decompression tasks. The relevant benchmark for
snappy's framed format [1].

Add more tests for compression and decompression & modernize some pattern matching.

[1]: https://github.com/milesgranger/pyrus-cramjam/blob/33c0516374fb9726ddcb82c5dfbe86be96d2cd35/cramjam-python/benchmarks/README.md
@aris-aiven
Copy link
Contributor Author

Not going to pursue this right now, we have higher priority work on our roadmap.

@aris-aiven aris-aiven closed this Oct 6, 2023
@aris-aiven aris-aiven deleted the aris-cramjam-snappy branch October 6, 2023 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant