Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move supply/react impl classes out of sub.
The class was re-captured every call. This was a bit wasteful. More notably, however, it led to the class block being lexically captured by something with a caller chain that eventually led back to the outer before, meaning that supply blocks might end up building a reference chain consisting of all the frames involved in processing all of the prior messages! This could leak a huge amount of memory.
- Loading branch information
Showing
1 changed file
with
15 additions
and
7 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