-
Notifications
You must be signed in to change notification settings - Fork 149
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
Regression of reduce
(formerly reducedim
) in Julia 0.7
#498
Comments
Maybe related to #439? |
See also #494. |
When I reproduced your tests today I only saw allocations for m>=6, but sooner in my use case (4x4 matrices) julia> VERSION julia> A = randn(4,4); julia> for m = 1:10 Are there any open plans to solve this? This looks like a problem I might go around by myself in my own project, but it would be certainly better to have this solved in the library. Is there some way a newbie could help? |
Yes, this is annoying. It is possible that the problem might relate to how keyword argument functions are lowered - I think there was an issue or comment somewhere to automatically add PS - Personally, I don't love the |
Completely agree, I wish the |
Probable same root cause as #540 |
One possible workaround for this is directly using the f_(A) = StaticArrays._reduce(+, A, Val(2), NamedTuple()) That method was added in #659. |
I observe a significant regression in
reduce
in Julia 0.7 compared toreducedim
in Julia 0.6. Below, I add the columns of anm
×2
matrix to create anm
×1
matrix for different values ofm
. In Julia 0.6,On the other hand, in Julia 0.7:
Observations:
Any idea why this regression occurs?
The text was updated successfully, but these errors were encountered: