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

Don't use lazy thunks for arguments that are always used #8

Open
jespercockx opened this issue May 12, 2022 · 0 comments
Open

Don't use lazy thunks for arguments that are always used #8

jespercockx opened this issue May 12, 2022 · 0 comments
Labels
enhancement New feature or request performance Possible improvement to performance

Comments

@jespercockx
Copy link
Owner

Currently compiling code with the --lazy flag incurs a quite heavy performance overhead (e.g. the slowdown is over 10x on Triples.agda). If we could analyze which arguments are always used by a given function, then we could avoid creating delay thunks for those arguments and instead evaluate them strictly. I started implementing this analysis in 2834874, but it is not yet clear to me how to do this analysis properly for mutually recursive functions.

@jespercockx jespercockx added enhancement New feature or request performance Possible improvement to performance labels May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Possible improvement to performance
Projects
None yet
Development

No branches or pull requests

1 participant