Skip to content

Are streams zero-copy? #2719

Answered by fzyzcjy
patmuk asked this question in Q&A
May 12, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

sending data from Rust to Dart is not zero-copy

It seems that Rust -> Dart is zero copy, but Dart -> Rust is not (yet). https://cjycode.com/flutter_rust_bridge/guides/types/translatable/zero-copy

When I am using a stream

Streams and function return values use the same underlying mechanism.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@patmuk
Comment options

@fzyzcjy
Comment options

Answer selected by patmuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants