4 ms·
Benchmarks are definitely coming. In theory Riot is super fast. The DOM is parsed once when a tag is initialized and after that the text nodes and attributes a
by tipiirai 12y ago
Benchmarks are definitely coming.
In theory Riot is super fast. The DOM is parsed once when a tag is initialized and after that the text nodes and attributes are only updated if the expression results to a different value. The expressions are compiled and cached.
Any performance bottleneck can be fixed.
- masklinn 12y ago> Benchmarks are definitely coming. Beware the way you're benchmarking, e.g. immutable structures and pure (& immutable-state-aware) components can make a pretty huge difference in react.
- tipiirai 12y agoYes. This is indeed a big challenge. Maybe I can just use the TodoMVC app.
- masklinn 12y agoYeah Matt Esch (virtual-dom) has a bench based on todomvc: https://github.com/matt-esch/mercury-perf https://github.com/matt-esch/mercury-perf http://matt-esch.github.io/mercury-perf/ http://matt-esch.github.io/mercury-perf/ Or http://evancz.github.io/todomvc-perf-comparison/ http://evancz.github.io/todomvc-perf-comparison/ which seems to be an older version of the same bench but has a better output.
- tipiirai 12y agoThanks. I think comparing Riot with React is most important initially. And there is no Riot 2.0 TodoMVC example available yet. I also think that Riot performance can be further optimized. Slowly getting there...