forked from fjall-rs/lsm-tree
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(compression): enable dictionary compression in pure Rust backend #229
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
Merged
polaz
merged 31 commits into
main
from
feat/#218-featcompression-enable-dictionary-compression-in-p
Apr 9, 2026
Merged
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
746a513
feat(compression): enable dictionary compression in pure Rust backend
polaz aacc1f1
fix(compression): normalize ZstdDictionary::id() to always return non…
polaz 7650e6b
perf(compression): cache FrameCompressor in TLS for pure Rust dict path
polaz 1aec535
perf(compression): reuse source Vec capacity in TLS compress_with_dict
polaz 59bd591
refactor(compression): extract DICT_MAGIC to module-level constant
polaz 9ce1517
test(compression): add cross-backend raw-content dict interop tests
polaz a8118f2
fix(compression): guard raw-content decompress against decompression …
polaz e765717
refactor(compression): extract decode_raw_content_bounded helper
polaz 4f8b969
test(compression): add raw-content dict capacity guard tests
polaz e8c9fb3
refactor(compression): extract decompress dispatch into named function
polaz 381957b
docs: note ZstdDict support in zstd-pure feature section
polaz 4c52232
ci(codecov): add zstd-pure coverage run to merge report
polaz 8887d18
fix(compression): use read_exact to drain FrameDecoder buffer
polaz f8c33a2
test(compression): add unit tests for strip_dict_id and error branches
polaz 08bd0fa
test(compression): cover bounded_read Io paths; tighten unreachable b…
polaz ffd9512
test(compression): directly test decode_raw_content_bounded error paths
polaz ac31ce6
feat(compression): enable dictionary compression in pure Rust backend
polaz 13a8f45
test(compression): add regression tests for empty raw-content dict ro…
polaz 53befa2
fix(compression): allow empty raw-content frames at capacity=0 in bou…
polaz 2bfa811
ci: add MSRV to test-zstd matrix
polaz 3f47c25
docs(compression): remove C FFI references; rename cold bench to tls_hit
polaz 299cfe2
docs(compression): correct DICT_MAGIC endian notation; expand ZstdDic…
polaz 44bb55e
fix(compression): use checked_add for overflow guard; reuse cached di…
polaz f6dde9f
docs(compression): TLS cache is backend-internal; ZstdDictionary hold…
polaz a6200d3
build(deps): update structured-zstd 0.0.7 → 0.0.10
polaz 28676bb
test(compression): add compaction path integration test for ZstdDict
polaz ef55325
docs(compression): clarify ZstdDictionary::new doc and test name
polaz c9c7ddf
docs(compression): standardize magic byte notation and fix minor doc …
polaz dd0275f
test(compression): assert L0 is empty after major_compact in zstd dic…
polaz 5f2e3a0
build(deps): update structured-zstd 0.0.10 → 0.0.11
polaz eb34b7f
docs(compression): document UptoBytes one-block over-decode behaviour…
polaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,7 @@ | ||
| fn main() { | ||
| println!("cargo:rerun-if-env-changed=CARGO_FEATURE_ZSTD"); | ||
| println!("cargo:rerun-if-env-changed=CARGO_FEATURE_ZSTD_PURE"); | ||
|
|
||
| let zstd = std::env::var("CARGO_FEATURE_ZSTD").is_ok(); | ||
| let zstd_pure = std::env::var("CARGO_FEATURE_ZSTD_PURE").is_ok(); | ||
|
|
||
| if zstd || zstd_pure { | ||
| if std::env::var("CARGO_FEATURE_ZSTD").is_ok() { | ||
| println!("cargo:rustc-cfg=zstd_any"); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.