-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor speedy.Compiler.freeVars to be functional
I was trying to track down what looks like a new source of flakiness in the ANF work (#6440), which manifested in a stack overflow on the recursion of the `go` function in speedy.Compiler. I spent a bit of time refactoring this to be functional in order to then trampoline it, only to realize afterwards that I had worked on `freeVars/go` whereas the one blowing up the stack was `validate/go`. Obviously, it did nothing to reduce the rate of flakiness on the stack overflow issue I was trying to address, as it's a separate function. So there isn't really a good reason for this change, except I had done it and I do believe the code looks marginally nicer, so might as well submit it. CHANGELOG_BEGIN CHANGELOG_END
- Loading branch information
1 parent
d3a69b3
commit 6502a5c
Showing
1 changed file
with
21 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters