sokra/rawact

Comparison to preact, Inferno, nervjs?

brodycj opened this issue · 2 comments

  • React compatibility
  • performance (will hopefully see this one in an updated js-framework-benchmarks report)
sokra commented

At least of performance here are some metrics:

image

image

Note that rawact is still a POC so the results may change:

  • Getting better when we do additional optimization
  • Getting worse when we add additional features

The goal of rawact is high react compatibility. The idea of compilation is to only include features that are used. i. e. when using only React.Component, hooks are not included and vise versa. When used they are included at the place where they are used. i. e. using hooks only a on-demand-loaded part of your app => the hooks feature is only included in that part, so it also loads on demand.

Another goal is that some features can enabled/disable at compile-time (like concurrent rendering vs sync rendering). So users can choose for compatibility vs rendering performance vs startup speed.

Awesome, thanks!