Skip to content

Buffer grows infinitely for infinite streams #1

@extremeandy

Description

@extremeandy

There doesn't appear to be any mechanism to clear the buffer once all Shared streams have read an entry at a particular index. This will result in unbounded memory usage for infinite streams.

Perhaps a VecDeque could be used for the buffer, with values only being popped if all Shared streams have finished reading at a particular index. This would also need to take into account whether a Shared has been dropped.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions