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

Skip to content

Conversation

@ipetkov
Copy link

@ipetkov ipetkov commented Jul 16, 2025

Constructing a new stream internally will produce a boxed stream, except the type signatures were written as returning impl Stream which requires calling .boxed() another time (when implementing Executor) to satisfy the type system, but it results in two allocations (and two pointer chases during polling) at runtime unnecessarily

ipetkov added a commit to 1Password/async-graphql that referenced this pull request Sep 8, 2025
Don't double box subscription streams

Upstream PR: async-graphql/async-graphql#1736
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.

1 participant