Skip to content

perf(numeric): size the unfiltered top-k window from k - #10875

Merged
ThierryBerger merged 2 commits into
masterfrom
thierry-14948-window-sizing
Sep 23, 2026
Merged

ThierryBerger merged 2 commits into
masterfrom
thierry-14948-window-sizing

Conversation

@ThierryBerger

@ThierryBerger ThierryBerger commented Aug 11, 2026 •

Copy link
Copy Markdown
Collaborator

The unfiltered source left the range window unbounded, so the whole field was resolved and whole ranges materialized before a full heap could stop the scan. Size the window from k instead, and arm the retry path for the case a validity or expiration drop leaves the heap short.

benchmark change
unfiltered n10k k10 −89.7%
unfiltered n10k k100 −86.9%
unfiltered n100k k10 −92.0%
unfiltered n100k k100 −90.8%
other configurations −1.0% to +1.3%

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9982a89710

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ThierryBerger ThierryBerger mentioned this pull request Aug 11, 2026
1 of 4 tasks
@ThierryBerger
ThierryBerger force-pushed the thierry-14948-window-sizing branch 2 times, most recently from c7fc6a6 to 6da579b Compare August 11, 2026 16:02
@github-actions github-actions Bot added size:M and removed size:S labels Aug 11, 2026
@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6da579bda6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@codecov

codecov Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.44%. Comparing base (8d1dae1) to head (400d9d5).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10875      +/-   ##
==========================================
- Coverage   84.22%   83.44%   -0.78%     
==========================================
  Files         639      664      +25     
  Lines       85147    86271    +1124     
  Branches    39083    40207    +1124     
==========================================
+ Hits        71711    71987     +276     
- Misses      13072    13913     +841     
- Partials      364      371       +7     
Flag Coverage Δ
flow 84.60% <ø> (-0.11%) ⬇️
unit 58.45% <100.00%> (-0.41%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Base automatically changed from thierry-14948 to master August 17, 2026 12:31
@ThierryBerger
ThierryBerger force-pushed the thierry-14948-window-sizing branch from 6da579b to 17be4ea Compare September 22, 2026 06:59
The unfiltered source left the range window unbounded, so the whole field was
resolved and whole ranges materialized before a full heap could stop the scan.
Size the window from k instead, and arm the retry path for the case a validity
or expiration drop leaves the heap short.
@ThierryBerger
ThierryBerger force-pushed the thierry-14948-window-sizing branch from a98b1f9 to 400d9d5 Compare September 23, 2026 08:31
@sonarqubecloud

Copy link
Copy Markdown

@ThierryBerger
ThierryBerger added this pull request to the merge queue Sep 23, 2026
Merged via the queue into master with commit 05adfdf Sep 23, 2026
107 of 109 checks passed
@ThierryBerger
ThierryBerger deleted the thierry-14948-window-sizing branch September 23, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants