Skip to content

perf: batch qualified module dependency lookup - #15752

Open
anmonteiro wants to merge 3 commits into
ocaml:mainfrom
anmonteiro:anmonteiro/perf-qualified-deps-upstream
Open

perf: batch qualified module dependency lookup#15752
anmonteiro wants to merge 3 commits into
ocaml:mainfrom
anmonteiro:anmonteiro/perf-qualified-deps-upstream

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Batch qualified module dependency resolution and cache group closures.

Stacked on #15754, which adds coverage for the batch API introduced in #15724.

I ran some microbenchmarks on this locally, results:

Case Base This PR Speedup
Reused deep-parent batch 59.05us 12.17us 4.85x
Warm group-closure lookup 26.45us 6.80us 3.89x
Cold first lookup, including setup 541.34us 503.69us 1.07x

The benchmark harness is not included in this PR.

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
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.

1 participant