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

Offset list counts zero offsets #454

Merged

Conversation

antiguru
Copy link
Member

@antiguru antiguru commented Jan 7, 2024

This change allows the OffsetList to count the length of a zero prefix of all offsets without actually storing the zero elements. This avoids consuming memory in a frequently-occurring pattern where at least the first element is zero, or if the singleton update optimization kicks in, a large prefix of elements (up to all) are zero.

This change allows the OffsetList to count the length of a zero prefix of
all offsets without actually storing the zero elements. This avoids
consuming memory in a frequently-occurring pattern where at least the first
element is zero, or if the singleton update optimization kicks in, a large
prefix of elements (up to all) are zero.

Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
Copy link
Member

@frankmcsherry frankmcsherry left a comment

Choose a reason for hiding this comment

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

I think this all checks out; thanks!

@frankmcsherry frankmcsherry merged commit dc5ebef into TimelyDataflow:master Jan 7, 2024
1 check passed
@antiguru antiguru deleted the offsetlist_zero_prefix branch January 8, 2024 18:26
This was referenced Oct 29, 2024
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.

2 participants