Hi,
I recently posted an issue (see here) on the Julia discourse regarding Folds.jl. Reposting here for visibility.
I’ve noticed that the Folds version of map() seems to introduce type instability:
using Folds
f1(K::Integer) = map(identity, 1:K)
f2(K::Integer) = Folds.map(identity, 1:K)
@code_warntype f1(5)
@code_warntype f2(5)
Do you have any suggestions for how to address this? Thanks in advance.
Hi,
I recently posted an issue (see here) on the Julia discourse regarding Folds.jl. Reposting here for visibility.
I’ve noticed that the Folds version of map() seems to introduce type instability:
Do you have any suggestions for how to address this? Thanks in advance.