3 ms·
The overhead of going to JS from Wasm these days is very small, and the DOM is relatively slow. So doing DOM operations from Wasm is not much different than fro
by janpaul123 5y ago
The overhead of going to JS from Wasm these days is very small, and the DOM is relatively slow. So doing DOM operations from Wasm is not much different than from JS; the vast majority of the time is spent in the actual DOM API calls.
- marcosdumay 5y agoAdd to that the fact that complexity tends to exist in an exponential curve, and even though the DOM is relatively slow, it is still very fast. So the number of projects where there is enough DOM interaction that WASM will be slow, but not enough that JS is still usable is very small.