Skip to content

runtest: use Map.is_singleton for context selection - #16534

Merged
anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:perf/runtest-context-singleton
Oct 4, 2026
Merged

anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:perf/runtest-context-singleton

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Use Map.is_singleton for the single-context fallback in runtest. Follow-up to #16533.

Avoid converting all contexts to a bindings list to select a singleton
fallback. Keep default-context precedence and the existing error when
the fallback is absent or ambiguous.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the perf/runtest-context-singleton branch from ed5b153 to 31f382a Compare October 4, 2026 22:33
@anmonteiro
anmonteiro merged commit 4a725e9 into ocaml:main Oct 4, 2026
36 checks passed
@anmonteiro
anmonteiro deleted the perf/runtest-context-singleton branch October 4, 2026 22:43
@Alizter Alizter added this to the 3.26.0 milestone Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants