Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type instability in Folds.map #55

Open
msainsburydale opened this issue Jul 13, 2022 · 0 comments
Open

Type instability in Folds.map #55

msainsburydale opened this issue Jul 13, 2022 · 0 comments

Comments

@msainsburydale
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant