Do you have any more details on that? I'm curious how close this got, and what were the main issues (on both size and speed).
Do you have any more details on that? I'm curious how close this got, and what were the main issues (on both size and speed).
- VDOMs in general have poor performance; they perform unnecessary computations in the diffing algorithm, and even well-designed ones perform extra DOM manipulations, compared to deliberately-written code.
- The Rust WASM files would come out pretty large; a few hundred KB for a minimal app. This is better than some packages using React + common JS dependencies like Lodash and Moment, but with much room for improvement
- DOM manipulation calls made in Rust via WASM(currently!) don't have any performance benefit over the native JS API
Benchmark results (look for "cope")[2][3]
I definitely think whatever happens over the next few years, VDOMs are on their way out.
[1]: https://github.com/whatisaphone/cope/blob/master/crates/js-f...
[2]: https://cdn.discordapp.com/attachments/751355413701591120/77...
[3]: https://cdn.discordapp.com/attachments/751355413701591120/77...