-
I recall that sending data from Rust to Dart is not zero-copy due to limitations in FFI. However, out of curiosity: When I am using a stream - is the data sent copied? Imagine I have
If I have a function, like the time example where I update some items of the something_big vector, will every time the whole vector be copied through the stream? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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
Streams and function return values use the same underlying mechanism. |
Beta Was this translation helpful? Give feedback.
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
Streams and function return values use the same underlying mechanism.