-
I'm working a a project which moves a lot of data to JS. The data are initially Rust structs and then converted to My questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Generally speaking, all the cases you mentioned, should be handled by the GC. All-in-all, unless something is intentionally not cleaning up memory, everything should be handled correctly by the GC eventually. (I'm not familiar with |
Beta Was this translation helpful? Give feedback.
Generally speaking, all the cases you mentioned, should be handled by the GC.
However there are some subtle issues that can't really be resolved because of the limitations surrounding JS, see #3917.
All-in-all, unless something is intentionally not cleaning up memory, everything should be handled correctly by the GC eventually.
If not, you have likely found a bug. Let us know if you do!
(I'm not familiar with
serde-wasm-bindgen
)