Skip to content

Use PiecewiseSequence for List take elements#8833

Draft
danking wants to merge 4 commits into
codex/piecewise-sequential-run-take-consumersfrom
codex/list-take-piecewise-elements
Draft

Use PiecewiseSequence for List take elements#8833
danking wants to merge 4 commits into
codex/piecewise-sequential-run-take-consumersfrom
codex/list-take-piecewise-elements

Avoid normalizing unused null list indices

243ed19
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Jul 17, 2026 in 0s

Performance Gate Passed

⚡ 12 improved benchmarks
✅ 1786 untouched benchmarks
⏩ 52 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation copy_nullable[65536] 1.4 ms 1 ms +32.01%
Simulation take_filter_list_slice_mask_random_indices[256, 50] 119.2 µs 92.6 µs +28.69%
Simulation take_filter_list_slice_mask_random_indices[768, 50] 119.6 µs 93.4 µs +28.05%
Simulation take_filter_list_small_random_mask_random_indices[256, 10] 116.2 µs 91 µs +27.69%
Simulation take_filter_list_small_uncached_random_mask_random_indices[256, 10] 116.9 µs 91.6 µs +27.6%
Simulation take_filter_list_nullable_random_mask_random_indices[256, 50] 128.5 µs 100.7 µs +27.56%
Simulation take_filter_list_random_mask_random_indices[256, 50] 122.6 µs 96.5 µs +27.07%
Simulation take_filter_list_nullable_random_mask_random_indices[768, 50] 132.6 µs 104.6 µs +26.73%
Simulation take_filter_list_small_random_mask_random_indices[768, 10] 120.3 µs 95 µs +26.6%
Simulation take_filter_list_small_uncached_random_mask_random_indices[768, 10] 120.1 µs 94.9 µs +26.55%
Simulation take_filter_list_random_mask_random_indices[768, 50] 127 µs 100.4 µs +26.51%
Simulation copy_non_nullable[65536] 1,089.5 µs 908.8 µs +19.89%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing codex/list-take-piecewise-elements (243ed19) with codex/piecewise-sequential-run-take-consumers (e4a0543)

Open in CodSpeed

Footnotes

  1. 52 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.