8000 Add missing inlining annotations to Name.pattern_match by lthls · Pull Request #4181 · oxcaml/oxcaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add missing inlining annotations to Name.pattern_match #4181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 26, 2025

Conversation

lthls
Copy link
Contributor
@lthls lthls commented Jun 24, 2025

We noticed some anonymous functions passed to Name.pattern_match in perf profiles. This is likely not a big problem, but given the typical usage of Name.pattern_match it seems better to always inline.

Co-authored-by: Guillaume Bury <guillaume.bury@gmail.com>
@Gbury Gbury added the flambda2 Prerequisite for, or part of, flambda2 label Jun 24, 2025
@Ekdohibs
Copy link
Contributor

There are several other pattern_match functions in the same file which would benefit from this as well, I think.

@lthls lthls merged commit f57605f into oxcaml:main Jun 26, 2025
31 of 32 checks passed
mshinwell pushed a commit that referenced this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flambda2 Prerequisite for, or part of, flambda2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0