Skip to content
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

Better scoping for [@@@ocaml.flambda_o3] #2665

Open
stedolan opened this issue Jun 6, 2024 · 1 comment
Open

Better scoping for [@@@ocaml.flambda_o3] #2665

stedolan opened this issue Jun 6, 2024 · 1 comment

Comments

@stedolan
Copy link
Contributor

stedolan commented Jun 6, 2024

Currently, [@@@ocaml.flambda_o3] appears to be a global setting. It would be nice if this could be done on a per-function or per-submodule basis (e.g. more like how [@inline always] works)

@lthls
Copy link
Contributor

lthls commented Jun 6, 2024

This doesn't seem practical at the moment, as Flambda is not designed to run on functions independently.
If this is just a matter of tweaking parameters (-O2 vs -O3) it could be considered, but switching between classic mode and regular flambda mode is not possible at this level.
I imagine the use case is huge files (so not practical to compile with -O3) where a few functions are performance critical, is that also what you had in mind ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants