Skip to content

ThreadsX.sum is not type inferable #182

@mohdibntarek

Description

@mohdibntarek

Hi!

Thanks for this really nice package. I noticed that the ThreadsX.sum function can't be inferred properly in Julia 1.6.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions