Skip to content

perf: push a prepared list_contains set into Dict and RunEnd needles - #10442

Merged
robert3005 merged 3 commits into
developfrom
rk/list-contains-dict-runend
Nov 22, 2026
Merged

robert3005 merged 3 commits into
developfrom
rk/list-contains-dict-runend

Conversation

@robert3005

@robert3005 robert3005 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

list_contains of a prepared constant set over dictionary or run-end encoded needles probed every row. Reduce rules now push the set into the values, so it probes once per distinct value or run.

🤖 Generated with Claude Code

@robert3005
robert3005 added this pull request to stack #10443 October 12, 2026 10:29
@codspeed

codspeed Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Merging this PR will regress 1 benchmark

1 warning

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚡ 3 improved benchmarks
❌ 1 regressed benchmark
✅ 1978 untouched benchmarks
⏩ 57 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ CPU Simulation null_count_run_end[(32000, 256, 0.01)] 7.7 µs 8.7 µs -11.13%
⚡ Walltime decode_blocked_bitpacked_chunked_neon[u32, 524288] 31 µs 26.9 µs +15.01%
⚡ Walltime random_rotating_avx2[(0.9, 0.9, "self_90pct_mask_90pct")] 9.5 µs 8.3 µs +14.74%
⚡ Walltime deferred_bool_avx512[i64, PerRowPerRow] 3.9 µs 3.5 µs +10.42%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing rk/list-contains-dict-runend (6cd8098) with develop (d368834)

Open in CodSpeed

Footnotes

  1. 57 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@robert3005
robert3005 force-pushed the claude/friendly-knuth-dj6ed1-list-contains branch from e86b215 to 4bb2b50 Compare October 14, 2026 17:30
@robert3005
robert3005 force-pushed the rk/list-contains-dict-runend branch from 520e97b to 59aa869 Compare October 14, 2026 17:32
@robert3005 robert3005 added the changelog/performance A performance improvement label Oct 14, 2026
@robert3005
robert3005 marked this pull request as ready for review October 14, 2026 17:45
Base automatically changed from claude/friendly-knuth-dj6ed1-list-contains to develop October 14, 2026 18:26
@robert3005
robert3005 force-pushed the rk/list-contains-dict-runend branch from 59aa869 to a6758cb Compare October 14, 2026 18:26
@robert3005
robert3005 removed this pull request from stack #10443 October 14, 2026 18:35
@robert3005
robert3005 force-pushed the rk/list-contains-dict-runend branch from a6758cb to 26a71c9 Compare October 15, 2026 11:49
@myrrc myrrc added the action/bench-sql-extended Run all regular SQL benchmarks with full PR target coverage label Oct 28, 2026
@robert3005 robert3005 removed the action/bench-sql-extended Run all regular SQL benchmarks with full PR target coverage label Nov 4, 2026
`list_contains` of a prepared constant set over dictionary or run-end
encoded needles probed every row. Reduce rules for `Dict` and `RunEnd`
now push the function into their values with a slice of the prepared
set, so the set is probed once per distinct value or run and the shared
set is not built again.

Off SQL null semantics, an empty set answers `false` for a null code, so
the dictionary rule returns a constant `false` in that case.

Signed-off-by: Robert Kruszewski <robert@spiraldb.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005
robert3005 force-pushed the rk/list-contains-dict-runend branch from 26a71c9 to ae19d84 Compare November 4, 2026 18:11
Shorten the doc comments on the Dict and RunEnd impls, and fold the
dictionary needles test with a null value into the rstest cases of the
dictionary needles test.

Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005
robert3005 force-pushed the rk/list-contains-dict-runend branch from 703b0e1 to 515f6ee Compare November 6, 2026 16:54
@robert3005
robert3005 enabled auto-merge (squash) November 6, 2026 16:58
@robert3005 robert3005 changed the title perf: push a prepared list_contains set into Dict and RunEnd needles [kernel] perf: push a prepared list_contains set into Dict and RunEnd needles Nov 19, 2026
Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005 robert3005 changed the title [kernel] perf: push a prepared list_contains set into Dict and RunEnd needles perf: push a prepared list_contains set into Dict and RunEnd needles Nov 19, 2026
@robert3005 robert3005 added the quick-review Small, self-contained change that is quick to review label Nov 19, 2026
@lwwmanning lwwmanning changed the title perf: push a prepared list_contains set into Dict and RunEnd needles Push a prepared list_contains set into Dict and RunEnd needles Nov 22, 2026
@lwwmanning lwwmanning changed the title Push a prepared list_contains set into Dict and RunEnd needles perf: push a prepared list_contains set into Dict and RunEnd needles Nov 22, 2026
@lwwmanning

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T16:53:18.428494Z 6cd8098 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 6cd80988f0

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 Devin Review: 3 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

@lwwmanning

Copy link
Copy Markdown
Contributor

Posted by Claude Opus 5.5 on Will's behalf.

Codex found no major issues, and the change merges cleanly. The three review comments from @myrrc on Nov 6 are still open:

  1. vortex-array/src/arrays/dict/compute/list_contains.rs: remove the comment part that was flagged.
  2. vortex-array/src/arrays/runend/compute/list_contains.rs: the same comment.
  3. vortex-array/src/scalar_fn/fns/list_contains/prepared/tests.rs: fold the new test into the previous test as a case.

Please address them and reply in each thread. A scope can go in the title too, for example perf(array): ....

@robert3005
robert3005 merged commit 8682126 into develop Nov 22, 2026
167 of 169 checks passed
@robert3005
robert3005 deleted the rk/list-contains-dict-runend branch November 22, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/performance A performance improvement quick-review Small, self-contained change that is quick to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants