Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

Resolves #7235.

The basic structure of this operator is that we repeatedly race the sink fiber and the schedule fiber.

As the sink fiber is being run repeatedly and produces its summary value each time there is no need to extend the scope of resources acquired by the sink into the scope of the stream and in fact doing so creates a memory leak.

In addition, we should just use one scope and repeatedly fork fibers in this scope rather than using multiple nested scopes, which again creates a memory leak.

@adamgfraser adamgfraser requested a review from iravid as a code owner August 26, 2022 04:28
@adamgfraser adamgfraser requested review from jdegoes and vigoo August 26, 2022 05:04
Copy link
Contributor

@vigoo vigoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

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.

ZIO 2.0.1, FiberRuntime memory leak, vol. 3

2 participants