-
Notifications
You must be signed in to change notification settings - Fork 0
Upstream sync: Merge latest changes from pmcgleenon/heavykeeper-rs (60f3a8c) #17
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
Open
github-actions
wants to merge
15
commits into
fastly-stable
Choose a base branch
from
upstream-sync-60f3a8c
base: fastly-stable
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version. - [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md) - [Commits](bheisler/criterion.rs@0.6.0...0.7.0) --- updated-dependencies: - dependency-name: criterion dependency-version: 0.7.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ons/checkout-5 chore(deps): bump actions/checkout from 4 to 5
chore(deps): update criterion requirement from 0.6.0 to 0.7.0
chore: added Sync to rng
chore: release v0.6.1
Use full u64::MAX range for decay thresholds so decay = 1.0 yields probability ~= 1.0 instead of 0.5. Adjust extrapolated thresholds to stay normalized in [0,1] with the same scaling as precomputed entries. Add test_decay_probability_scaling_fix to verify old behavior (no decay at rand = 2^63) and new behavior (always decay) for decay = 1.0 This bug made the decay in HeavyKeeper only half as strong as intended, so old or noisy items stuck around in the sketch much longer than they should. In practice that means top-k results were slower to react to changes, more polluted by outdated flows, and harder to tune, because the decay parameter no longer matched the behavior described in the HeavyKeeper paper. This fix restores the correct probability scale so decay behaves as configured, making the sketch more accurate.
Fix decay probability scaling + add test
Refactor TopKQueue::iter to use heap indices stored in the items map, eliminating O(k) scans of the heap per comparison. Reduce overall complexity from effectively O(k^2) to O(k log k) while preserving ordering semantics (count desc, sequence asc). Add a Criterion benchmark (topk_list) that fills a large-k TopK and repeatedly calls list() to exercise and measure the optimized path.
Improve TopKQueue::iter perf + add list benchmark
chore: release v0.6.2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR synchronizes the latest changes from the upstream repository https://github.com/pmcgleenon/heavykeeper-rs into the fastly-stable branch.
Upstream commit: 60f3a8c
Please review the changes and merge if appropriate.