4 ms·
How does this compare to worker-dom [1]? Per worker-dom, one can reuse popular frameworks (React, Vue, Preact, ...) and simply move the [framework+app] code to
by throwGuardian 7y ago
How does this compare to worker-dom [1]? Per worker-dom, one can reuse popular frameworks (React, Vue, Preact, ...) and simply move the [framework+app] code to a worker thread.
[1]: https://github.com/ampproject/worker-dom https://github.com/ampproject/worker-dom
- tobiu 7y agoTo be honest, I have not looked at this project yet. In neo.mjs, there is an app worker which contains most parts of the framework and your apps (can be more than 1). The vdom comparison happens inside the vdom worker (which mostly makes sense in case there is a lot going on inside the app thread). The mostly idle main thread applies the deltas. The vdom itself is very different to other frameworks, since it is JSON based. neo.mjs is not using any templates at all, which boosts the performance a lot.