-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Inlining calls without concrete types can slow things down a lot #12219
Labels
Comments
Should be type inference not codegen? |
FWIW, |
Confirmed—nothing to do here anymore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In situations where a function is inlined without concrete type information, we can end up with multiple dynamic (
jl_apply_generic
) function calls when we only needed one before inlining, which can slow things down a lot. Consider:After adding
@noinline
tog(x)
:The text was updated successfully, but these errors were encountered: