Skip to content

PrimitiveArrayExt::narrow expose ExecutionCtx #8096

Merged
joseph-isaacs merged 2 commits into
developfrom
claude/admiring-wright-yyvTE
May 26, 2026
Merged

PrimitiveArrayExt::narrow expose ExecutionCtx #8096
joseph-isaacs merged 2 commits into
developfrom
claude/admiring-wright-yyvTE

Conversation

@joseph-isaacs
Copy link
Copy Markdown
Contributor

Narrow requires an exe ctx so pass one

Replace the internal LEGACY_SESSION.create_execution_ctx() in narrow with
an explicit ExecutionCtx parameter, propagating it through dict_encode and
dict_encode_with_constraints. This also removes the deprecated to_primitive
calls inside narrow in favor of execute::<PrimitiveArray>(ctx).

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>

https://claude.ai/code/session_01XumjWy7Gws28WbDfk9Z5pd
@joseph-isaacs joseph-isaacs added the changelog/chore A trivial change label May 26, 2026
@joseph-isaacs joseph-isaacs enabled auto-merge (squash) May 26, 2026 10:06
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 26, 2026

Merging this PR will not alter performance

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 1249 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation chunked_varbinview_canonical_into[(100, 100)] 273.2 µs 307.9 µs -11.27%
Simulation chunked_varbinview_opt_into_canonical[(1000, 10)] 239.9 µs 202.5 µs +18.46%

Tip

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


Comparing claude/admiring-wright-yyvTE (0bb8d28) with develop (dbfe521)

Open in CodSpeed

Replace the LEGACY_SESSION usages introduced by this PR's test modules with a
local `static SESSION: LazyLock<VortexSession>` defined per test module, so
tests no longer depend on the global legacy session. Production code continues
to use LEGACY_SESSION.

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs joseph-isaacs merged commit ab493e5 into develop May 26, 2026
68 of 126 checks passed
@joseph-isaacs joseph-isaacs deleted the claude/admiring-wright-yyvTE branch May 26, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants