Skip to content

Use PiecewiseSequence for List take elements#8833

Merged
robert3005 merged 7 commits into
developfrom
codex/list-take-piecewise-elements
Jul 21, 2026
Merged

Use PiecewiseSequence for List take elements#8833
robert3005 merged 7 commits into
developfrom
codex/list-take-piecewise-elements

Shorten list take output offset type name

a9f9ecd
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Jul 21, 2026

Performance Gate Passed

⚡ 10 improved benchmarks
✅ 1778 untouched benchmarks
⏩ 54 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation take_filter_list_nullable_random_mask_random_indices[256, 50] 130.3 µs 99.4 µs +31.11%
Simulation take_filter_list_slice_mask_random_indices[768, 50] 121 µs 92.5 µs +30.83%
Simulation take_filter_list_slice_mask_random_indices[256, 50] 120.3 µs 92.2 µs +30.45%
Simulation take_filter_list_nullable_random_mask_random_indices[768, 50] 134.4 µs 103.7 µs +29.68%
Simulation take_filter_list_random_mask_random_indices[256, 50] 124.1 µs 95.7 µs +29.61%
Simulation take_filter_list_small_random_mask_random_indices[256, 10] 117.1 µs 90.7 µs +29.08%
Simulation take_filter_list_small_uncached_random_mask_random_indices[256, 10] 118 µs 91.7 µs +28.66%
Simulation take_filter_list_small_random_mask_random_indices[768, 10] 121.3 µs 94.9 µs +27.86%
Simulation take_filter_list_small_uncached_random_mask_random_indices[768, 10] 121.3 µs 95 µs +27.76%
Simulation take_filter_list_random_mask_random_indices[768, 50] 128 µs 100.3 µs +27.71%

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 (a9f9ecd) with develop (ae9ecec)

Open in CodSpeed

Footnotes

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