-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
simonster
added
performance
Must go faster
compiler:codegen
Generation of LLVM IR and native code
labels
Jul 19, 2015
simonster
changed the title
Inlining function calls without concrete types can slow things down a lot
Inlining calls without concrete types can slow things down a lot
Jul 19, 2015
Should be type inference not codegen? |
yuyichao
added
compiler:inference
Type inference
and removed
compiler:codegen
Generation of LLVM IR and native code
labels
Aug 14, 2016
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: