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

Pull Compilation Tweak: reuse BuildR object. #2772

Merged
merged 1 commit into from
Dec 25, 2021

Conversation

diesalbla
Copy link
Contributor

In the compilation loop, the BuildR simply represents a sort-of callback or continuation, to connect the result of an inner stream. We use them because directly passing the Uncons or the StepLeg runners currently causes memory leaks.

However, since the BuildR object itself has no state, we can just reuse a same object all through the compilation.

In the compilation loop, the BuildR simply represents a sort-of
callback or continuation, to connect the result of an inner stream.
We use them because directly passing the Uncons or the StepLeg runners
currently causes memory leaks.

However, since the BuildR object itself has no state, we can just
reuse a same object all through the compilation.
@mpilquist mpilquist merged commit 1077e3c into typelevel:main Dec 25, 2021
@diesalbla diesalbla deleted the tweak_reuse_buildr branch December 26, 2021 16:17
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.

2 participants