Skip to content

fix(runtime): no FastStream for unrefable streams - #16095

Merged
lucacasonato merged 1 commit into
denoland:mainfrom
lucacasonato:unref_no_faststream
Sep 29, 2022
Merged

lucacasonato merged 1 commit into
denoland:mainfrom
lucacasonato:unref_no_faststream

Conversation

@lucacasonato

Copy link
Copy Markdown
Contributor

Unrefable streams are not immediately compatible with FastStreams,
because it would require all FastStream implementers to support
unref streaming. This is not reasonable at this time, so for now we opt
all unrefable streams out of the FastStreams optimization by removing
the [_maybeRid] marker from these ReadableStream objects.

Unrefable streams are not immediately compatible with FastStreams,
because it would require all FastStream implementers to support
unref streaming. This is not reasonable at this time, so for now we opt
all unrefable streams out of the FastStreams optimization by removing
the `[_maybeRid]` marker from these `ReadableStream` objects.

@bartlomieju bartlomieju left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, nice cleanup

@marcosc90 marcosc90 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lucacasonato
lucacasonato merged commit 38f5445 into denoland:main Sep 29, 2022
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.

3 participants