Remove usages of LEGACY_SESSION from tests#8547
Conversation
Signed-off-by: Robert Kruszewski <github@robertk.io>
Merging this PR will not alter performance
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Simulation | slice_empty_vortex |
310 ns | 368.3 ns | -15.84% |
| ⚡ | Simulation | bitwise_not_vortex_buffer_mut[128] |
215.3 ns | 186.1 ns | +15.67% |
| ⚡ | Simulation | bitwise_not_vortex_buffer_mut[1024] |
275.6 ns | 246.4 ns | +11.84% |
| ⚡ | Simulation | eq_i64_constant |
318.6 µs | 289 µs | +10.23% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing rk/nolegacysession (ae828f6) with develop (40a7857)
|
@claude review in depth |
|
Claude finished @0ax1's task in 2m 51s —— View job Claude in-depth PR review
SummaryThis PR mechanically migrates test code off the deprecated pub static LEGACY_SESSION: LazyLock<VortexSession> = LazyLock::new(array_session);so What I verified
Minor observations (non-blocking)
VerdictClean, low-risk, mechanical migration with one genuine correctness improvement (pco). No bugs found. The only thing worth a second look is the per-call session construction in the always-compiled Note: I was unable to run |
|
@claude what about perf implications, and creating sessions in a tight loop |
|
Claude finished @0ax1's task in 1m 44s —— View job Perf implications & session creation in tight loopsGood question — I traced every migrated call site and the session-construction cost. Short version: no production impact, and the genuinely hot loops were deliberately left on amortized statics. One narrow class of test-only helpers does now build a session per call. What
|
Continuing migration away from deprecated methods