Skip to content

Seek to mint in matrix selector to skip decoding unnecessary samples - #722

Draft
chriscerie wants to merge 3 commits into
thanos-io:mainfrom
chriscerie:selector-seek
Draft

Seek to mint in matrix selector to skip decoding unnecessary samples#722
chriscerie wants to merge 3 commits into
thanos-io:mainfrom
chriscerie:selector-seek

Conversation

@chriscerie

Copy link
Copy Markdown

When step > selectRange, consecutive evaluation windows have a gap between them. The matrix scanner currently walks forward through every sample in that gap, decoding each one only to discard the samples between windows.

The optimization is to seek the iterator directly to mint so whole chunks contained in the gap don't get decoded

Signed-off-by: Christopher Chang <chriscee@amazon.com>
@chriscerie
chriscerie marked this pull request as draft July 23, 2026 01:19
Signed-off-by: Christopher Chang <chriscee@amazon.com>
Signed-off-by: Christopher Chang <chriscee@amazon.com>
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.

1 participant