You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #29133 it was noted that a @nospecialize annotation on iterate for tuples lead to a performance regression in the following (badly named becuase it isn't really testing the perf of setindex! at all) benchmark:
perf_setindex!(A, val, inds) =setindex!(A, val, inds...)
using BenchmarkTools
s =2
A =rand(Float64, ntuple(one, s)...)
y =one(eltype(A))
i =length(A)
@btimeperf_setindex!($(fill!(A, y)), $y, $i)
This is strange—inference isn’t supposed to look at this flag. It would be helpful to understand what inlining decisions got made and why, as this might be indicating a deeper problem.
Opening this to track.
The text was updated successfully, but these errors were encountered:
In #29133 it was noted that a
@nospecialize
annotation oniterate
for tuples lead to a performance regression in the following (badly named becuase it isn't really testing the perf ofsetindex!
at all) benchmark:According to @vtjnash:
Opening this to track.
The text was updated successfully, but these errors were encountered: