|
|
|
|
|
by goldenkey
4570 days ago
|
|
I'm pretty sure OP knows about postMessage. That wasn't his point. The only way to pass data is through message passing - but the message passing takes only strings. Just object serialization and deserialization in JS is slow enough to make it infeasable to do large-scale transfer between the two without paying for transmuting the data. We need immutable object passing for performance. Or locked mutable object passing (like Rust.) And why not the ability to modify DOM elements with the repaints happening on the main thread? |
|
https://developer.mozilla.org/en-US/docs/Web/Guide/Performan...