Skip to content

Broadcasted in-place assignment of matrix to subarray 3x slower in 1.11-alpha1 over 1.10 and nightly #53615

Open
@BioTurboNick

Description

@BioTurboNick

Discovered a slowdown in 1.11-alpha when copying an array to a subarray.

Since it seems nightly doesn't have it it's possible this is fixed and already marked for backport but I haven't found it - apologies for the noise if so.

using BenchmarkTools

A = rand(1000,1000);
B = zeros(1001,1001);

@btime $B[1:end - 1, 1:end - 1] .= $A;
# Julia 1.10.2: 526.900 μs
# Julia 1.11-alpha1: 1.560 ms
# Julia 1.12-DEV.136: 532.800 μs

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]bisect wantedperformanceMust go fasterregressionRegression in behavior compared to a previous versionregression 1.11Regression in the 1.11 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions