-
-
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
10-fold slowdown in Julia 0.5.0 #18616
Comments
Some more info: My test code is:
Commenting out The circled area corresponds to normal execution. The slowdown is attributed to iterator traversal according to the profiler. Profiling with |
If you can post any code (even if long) that reproduces the issue, that would be helpful. Otherwise I'm not sure where to start here. |
A wild guess: Importing |
Could this be #18465? Does |
The answer to the last question is definitely yes. The Variables section for
In particular, complete type inference fails for
which passes in the absence of |
Managed to distill a minimal reproducing example:
|
@vtjnash Should we close this as dup? |
sgtm |
I have encountered a situation where code with the following structure slowed down a factor of 10 in the new Julia release:
The weird thing is that running
y=g(x)
before invokingf(x)
results in the code being run at full speed. (this is not a case of JIT overhead; subsequent invocations off(x)
remain slow ify=g(x)
was not run). The problem did not appear immediately after installing Julia 0.5.0 so it could be an updated package I pulled in or a cached compiled package.I haven't been able to isolate the problem. If I manage to get a one-pager I'll post it here.
For completeness:
The text was updated successfully, but these errors were encountered: