Skip to content

3x regression in broadcast with fused outer constructor #57434

Open
@adienes

Description

@adienes
julia> using BenchmarkTools

julia> a, b = [0.1,0.2], [1.0,2.0];

julia> bar2(T, c, f) = sum(f .* T.(c));

julia> @btime bar2(Float32, $a, $b)

# 337.484 ns (6 allocations: 208 bytes) # 1.9
# 1.008 μs (10 allocations: 432 bytes) # 1.10
# 1.100 μs (11 allocations: 432 bytes) #nightly 1.13

found while looking at #39151

I suspect this has also regressed more than once in small increments, but I focused my bisection to the increase in allocations (which was also a 3x in time), which pointed at #49725

Metadata

Metadata

Assignees

No one assigned

    Labels

    broadcastApplying a function over a collectionperformanceMust go fasterregression 1.10Regression in the 1.10 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions