Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid building up a huge stack of continuations
If we have a continuation to resume, it already has the continuation entry frame with error handling as part of the stack that is resumed. If we thus invoke the continuation inside such a frame, and then it also results in the continuation being taken, we make the stack more deeply nested each time. Don't do that. Also refactor to avoid taking a closure holding the continuation, which will make things a little cheaper.
- Loading branch information
Showing
1 changed file
with
30 additions
and
19 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