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

Rewrite RepeatM in terms of unfoldM #5

Open
jnape opened this issue Sep 30, 2021 · 0 comments
Open

Rewrite RepeatM in terms of unfoldM #5

jnape opened this issue Sep 30, 2021 · 0 comments
Labels
performance Changes that are only perceivable in terms of space or runtime complexity

Comments

@jnape
Copy link
Member

jnape commented Sep 30, 2021

Preliminary testing shows unfold is significantly faster than the current primitive recursive implementation of repeatM, likely due to the JIT's ability to optimize the withSelf call.

@jnape jnape added the performance Changes that are only perceivable in terms of space or runtime complexity label Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Changes that are only perceivable in terms of space or runtime complexity
Projects
None yet
Development

No branches or pull requests

1 participant