-
-
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
Creating @cfunction
from a closure takes a long time in compilation
#42590
Comments
It's a rather drastic regression so I just put in the milestone. But please feel free to remove it if not appropriate. |
Can you bisect? |
Yeah, I think I can |
It looks like #41827 introduced the issue. |
Looks like O(n^2) attribute list lookup? |
Nah, just |
Ah, now it becomes clear why my QML.jl based GUI application takes ages to compile and start since I upgraded to julia 1.6.3!!! |
Edit: it looks like #41827 (which is a bug fix) introduced the performance regression.
Running the script below shows that
demo_slow
takes about 30 seconds to compile in Julia 1.8-DEV (9a2e763) and 1.7.0-rc1 (9eade61) while it completes in a few tens of milliseconds in Julia 1.7.0-beta4.2 (642719e) and 1.6.include
ing the above script in@profile
suggests that Julia spends most of the time ingen_cfun_wrapper
(and_ZNK4llvm13AttributeList13hasAttributesEj
called from it).The text was updated successfully, but these errors were encountered: