-
-
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
1.8.5 -> 1.9 regression in number of allocations from getproperty
#49697
Comments
This needs more of a reduction for this to be actionable over just a |
Working on it |
The allocations are almost entirely originating from Specifically, this method: https://github.com/JuliaLang/julia/blob/master/base/Base.jl#L37 |
getproperty
Possibly related: #49241 |
Could check if the offending commit bisected in that PR (#47371) is the cause by looking at the results one commit before it. Could also try to bisect this but I suspect it will be a bit difficult since it might not be one commit that is to blame for the whole allocation increase. |
I boiled it down to a simple demonstration:
Bisect pinpointed #47371 as you thought. |
Putting that in a function makes it not appear anymore julia> s = Set();
julia> f(s) = s.dict;
julia> @time f(s);
0.000004 seconds So how does this manifest itself within Plots? Is it because |
Current master (e204e20) still has it |
Hmm, I'd be surprised if it wasn't inferred. One example is a for loop iterating over a global constant. |
The constant is a |
Yeah, the cases responsible are all iterating over global constant sets of symbols, or over |
Milestone 1.10 means no chance this gets fixed on a 1.9.x ? |
No that's not what it means. It means that it is a release blocker for 1.10. That's all. |
Ok thanks, sorry for the noise. |
@BioTurboNick, could you check how the situation is on the #50507 branch? |
getproperty
getproperty
@KristofferC Yes it appears to be fixed! The OP example on the backports-release-1.9 branch:
|
The execution time is similar for this small example, but there are 10x more allocations on 1.9-rc3.
From JuliaPlots/Plots.jl#4742
The text was updated successfully, but these errors were encountered: