Skip to content

Avoid copying entire mappings during type inference - #7057

Merged
FarhanAliRaza merged 3 commits into
mainfrom
codex/perf-bounded-mapping-inference
Nov 10, 2026
Merged

FarhanAliRaza merged 3 commits into
mainfrom
codex/perf-bounded-mapping-inference

Merge branch 'main' into codex/perf-bounded-mapping-inference

bbc1920
Select commit
Loading
Failed to load commit list.
CodSpeed / CodSpeed Performance Analysis failed Nov 9, 2026

Performance Regression: -0.44%

2 warnings

⚠️ 19 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚠️ 2 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 146 untouched benchmarks
🆕 3 new benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_state_collection_assignment[1000] 11.4 ms 12.1 ms -5.05%
⚡ test_process_event_burst_independent_tokens[1] 2.8 ms 2.7 ms +4.39%
🆕 test_mapping_type_inference[100] N/A 1.4 ms N/A
🆕 test_mapping_type_inference[10000] N/A 1.4 ms N/A
🆕 test_mapping_type_inference[100000] N/A 1.4 ms N/A

Tip

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


Comparing codex/perf-bounded-mapping-inference (bbc1920) with main (982a6fb)

Open in CodSpeed