-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Replace Datadog/zstd with Klauspost/compress #1383
Conversation
Let me double check. That shouldn't be possible. |
Co-authored-by: Klaus Post <klauspost@gmail.com>
Co-authored-by: Klaus Post <klauspost@gmail.com>
Any progress with this? If I run ... |
@jarifibrahim Ping. You might want to upgrade to |
Has this PR been abandoned? Slightly confused by the state of the ticket as reading through the comments it appears all the issues which were raised have been addressed. Are there other issues which are not documented or is this ticket just waiting for time by the author to test and review? |
We'd hate to have to rip this out of Caddy if this PR can't be merged. |
Use https://github.com/klauspost/compress ZSTD compression when CGO is not enabled. Related to #1383
@jarifibrahim closing this because the issue is addressed by #1706 |
We have merged #1706 which adds the pure go-based ZSTD to badger. This will be released as part of the badger release in July. @mholt @emolitor @ivanjaros @klauspost Thank you all for your feedback and helping improve badger ❤️ . Apologies for the delay in merging this PR. It got lost in all the other work we're doing on badger/dgraph. |
I don't think that PR actually solves the problem we have with badger re Caddy. The dependency is still part of the chain, so our users will still end up needing to explicitly specify |
@francislavoie Okay. I think we can set pure go as the default one. I think @klauspost already mentioned that the klauspost/compress should be able to decompress data written by datadog/zstd. So we shouldn't have a problem. |
Yes and vice versa if that should become relevant. |
Use https://github.com/klauspost/compress ZSTD compression when CGO is not enabled. Related to #1383 (cherry picked from commit b188600)
Edit - This is a stale PR. Please see #1706 for the latest one.
Fixes #1162
PR #1176 was the first attempt at replacing the library but we decided to not switch the library because of performance issues.
https://github.com/klauspost/compress has become much faster since the last time we benchmarked it in #1176. The new benchmarks in #1162 (comment) look very promising and we should get rid of the CGO dependency.
This change is