Skip to content

Fix #1687: postpone computations in tailrec until they are needed. #1909

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

Merged
merged 2 commits into from
Jan 28, 2017

Conversation

DarkDimius
Copy link
Contributor

Previous version precomputed everything needed to make the final decision.
This was fast-path for method that will be tail-rec transformed.
Unfortunatelly, in case decision was not to tail-rec optimize it could have
led to exponential number of transformations.

Now, the fast-path is for methods that will not.

Previous version precomputed everything needed to make the final decision.
This was fast-path for method that will be tail-rec transformed.
Unfortunatelly, in case decision was not to tail-rec optimize it could have
led to exponential number of transformations.

Now, the fast-path is for methods that will not.
The b-test would compile for a millenia without the fix.
@DarkDimius
Copy link
Contributor Author

ping @mukel

@odersky
Copy link
Contributor

odersky commented Jan 28, 2017

LGTM

@DarkDimius DarkDimius merged commit d5201d3 into scala:master Jan 28, 2017
@allanrenucci allanrenucci deleted the fix-1687 branch December 14, 2017 19:19
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

Successfully merging this pull request may close these issues.

3 participants