Prunning expressions can reference rowcount #7589
Open
robert3005 wants to merge 1 commit intodevelopfrom
Open
Conversation
robert3005
commented
Apr 22, 2026
robert3005
commented
Apr 22, 2026
Merging this PR will improve performance by 31.85%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | varbinview_zip_fragmented_mask |
7.3 ms | 6.5 ms | +11.47% |
| ⚡ | Simulation | varbinview_zip_block_mask |
3.7 ms | 2.9 ms | +27.64% |
| ⚡ | Simulation | old_alp_prim_test_between[f64, 16384] |
212.3 µs | 188 µs | +12.94% |
| ⚡ | Simulation | old_bp_prim_test_between[i32, 16384] |
162.1 µs | 146.2 µs | +10.88% |
| ⚡ | Simulation | old_bp_prim_test_between[i64, 16384] |
203.3 µs | 170.9 µs | +18.91% |
| ⚡ | Simulation | old_bp_prim_test_between[i32, 32768] |
233 µs | 202 µs | +15.34% |
| ⚡ | Simulation | new_alp_prim_test_between[f64, 16384] |
147.6 µs | 125.2 µs | +17.84% |
| ⚡ | Simulation | new_alp_prim_test_between[f32, 32768] |
182.9 µs | 138.7 µs | +31.85% |
| ⚡ | Simulation | new_alp_prim_test_between[f64, 32768] |
235.3 µs | 190.9 µs | +23.23% |
| ⚡ | Simulation | new_bp_prim_test_between[i32, 32768] |
169 µs | 140.2 µs | +20.59% |
Comparing rk/rowcount (7f6cd51) with develop (c91d833)
Contributor
Author
|
I have tried making it an expression. The problem you run into is that this expression isn't constant so you can't rewrite it into literal but also that expression cannot be inferred from the existing arrays properties |
Contributor
Author
|
Ok, this is good to go now, a lot more code than I'd wish but at least it's pure array rewrite |
This lets us effectively prune expressions like IsNotNull Signed-off-by: Robert Kruszewski <github@robertk.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This lets us effectively prune expressions like IsNotNull
fix #7187
Signed-off-by: Robert Kruszewski github@robertk.io