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

fix(cardinality): Keep sliding window updated with good cardinality items #3076

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Feb 8, 2024

After checking for membership items were not added to new granules of the sliding window:

[ ][ ][ ]{ }{ }{ }[ ][ ][ ] - Start
[A][A][A]{ }{ }{ }[ ][ ][ ] - Insert A
   [A][A]{A}{ }{ }[ ][ ][ ] - Time passed, refresh A
          \-- This value was missing before.

#skip-changelog

@Dav1dde Dav1dde requested a review from a team as a code owner February 8, 2024 13:09
@Dav1dde Dav1dde self-assigned this Feb 8, 2024
opts = opts or {}
local key_offset = opts.skip_working_set and 1 or 0
local offset = opts.offset or 0
local max = opts.max
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you also need default for max here ? Seems like it's not always provided.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit of a mess, but max being nil is fine, it's checked in the batches function and has a different behaviour if it's not set.

@Dav1dde Dav1dde merged commit 4e8c00c into master Feb 9, 2024
20 of 21 checks passed
@Dav1dde Dav1dde deleted the dav1d/fix/good-cardinality branch February 9, 2024 07:37
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.

None yet

2 participants