forked from KillingSpark/zstd-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
perf(dfast): close level 3 parity gap — compress 11.0× → 5.5× of donor #145
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
Closed
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
85c1080
perf(encoding): #111 Phase 7c — split dfast hash table sizing to dono…
polaz eab4d73
perf(encoding): #111 Phase 7c — port donor single-slot storage + spar…
polaz 9bb724e
perf(encoding): #111 Phase 7c step 3 — drop dfast window-Vec byte dup…
polaz e96bce8
perf(encoding): preallocate compress_to_vec output, add compress_slic…
polaz 87e2eef
perf(encoding): cap compress_slice_to_vec initial capacity at one out…
polaz 078e621
perf(dfast): tighten insert_positions inner loop with hoisted invariants
polaz 5372ae9
perf(dfast): peek repcode at ip+1 to match donor exactly
polaz c6eb5a8
perf(dfast): lower DFAST_MIN_MATCH_LEN from 6 to 5 to match donor mls
polaz 67a4785
perf(dfast): switch hash to donor scalar mul, drop CRC32d kernel disp…
polaz 233603f
perf(dfast): inline(always) on best_match → hash_candidate → probe_sl…
polaz 70f966b
perf(build): enable fat LTO and codegen-units=1 for release/bench
polaz 8e72d58
perf(dfast): grow skip-step by scan distance to match donor
polaz 78f51da
perf(dfast): rewrite start_matching_fast_loop in donor outer/inner shape
polaz 1e6d5dd
perf(dfast): inline rep1-only peek at ip+1 (donor parity, drop rep2/r…
polaz b2b4d48
chore: ignore local helper docs in .local/
polaz 079615c
perf(encoding): scale initial all_blocks capacity by source-size hint
polaz ef906f7
fix(dfast): tighten fast_loop guards to HASH_READ_SIZE to stop OOB load
polaz bac47a6
chore: rescope LTO to bench, fix stale docs, sync bench API call
polaz 87a62e3
fix(dfast): rebase before fast-loop slot pack + compact on trim
polaz 36d5daa
fix(dfast): carry tail seed cursor + simplify committed + scrub dead …
polaz 1121c5e
fix: empty-block guard, compress_bound saturating add, gitignore pattern
polaz 4a5e72d
docs(dfast): correct collapse-pair, drop tracked interop crash, expec…
polaz 6aa6576
fix(dfast): free dead prefix on trim, guard ensure_room_for, hoist he…
polaz ecd2bfd
fix(dfast): rep1 floor=4, probe gate width, empty-block guards
polaz 8a6df9f
refactor(dfast): drop history_start alias + clarify fuzz test signal
polaz 900f211
refactor(dfast): inner-loop exit enum + API symmetry + doc cleanup
polaz f928ef4
perf(fse): cache predefined LL/ML/OF default tables in AtomicPtr
polaz f9d36b1
fix(dfast): probe last hashable position + enforce short-hash floor
polaz 0cbb300
fix(dfast,fse): drop unused trim arg, harden FSE cache slot routing
polaz 0338876
perf(fse): return &'static FSETable from cache + dfast cleanup
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,16 @@ | ||
| [workspace] | ||
| resolver = "3" | ||
| members = ["zstd", "cli"] | ||
|
|
||
| # Bench profile inherits from release but overrides LTO/codegen-units so | ||
| # the perf measurement reflects full cross-crate inlining. We deliberately | ||
| # scope this to `[profile.bench]` instead of `[profile.release]`: the | ||
| # release profile is shared by the `cli` binary and every downstream | ||
| # consumer of this workspace, and fat LTO + codegen-units = 1 multiplies | ||
| # release build times ~5× and significantly increases peak compile RAM. | ||
| # Bench builds run on CI with the wall clock budget for it; everyday | ||
| # `cargo build --release` (and downstream consumers) should not pay that | ||
| # cost without explicitly opting in. | ||
| [profile.bench] | ||
| lto = "fat" | ||
| codegen-units = 1 |
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
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.