Closed mohamed82008 closed 2 years ago
Hi!
Thanks for this really nice package. I noticed that the ThreadsX.sum function can't be inferred properly in Julia 1.6.
ThreadsX.sum
julia> @code_warntype ThreadsX.sum(log, rand(100)) Variables #self#::Core.Const(ThreadsX.sum) f::Core.Const(log) itr::Vector{Float64} Body::Any 1 ─ %1 = Core.NamedTuple()::Core.Const(NamedTuple()) │ %2 = Base.pairs(%1)::Core.Const(Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}()) │ %3 = ThreadsX.Implementations.:(var"#sum#14")(%2, #self#, f, itr)::Any └── return %3
I think we can solve this in recent Julia. Let's track this issue in #166 since at the lowest layer it's the same issue.
duplicate of #166
Hi!
Thanks for this really nice package. I noticed that the
ThreadsX.sum
function can't be inferred properly in Julia 1.6.