Maybe. There is no upper bound to how badly you can write ReactJS or AngularJS code. For that matter, there's no limit to how badly you can write C, C++, and assembly language code.
What matters is: Is it fast enough for the user? Is it fast enough for the developer to develop in long term both for initial development and for long term maintenance.
As a user of both, I can confidently say that, without any manual optimizations, Angular performs pretty poorly on large lists, which I frequently must work with. React is faster out of the box. The ease with which I can do custom optimizations on React is also easier and therefore more likely to happen.
When dealing with JS frameworks, unless you're doing some next generation DOM and JS code rewriting to compile away the abstractions into the lowest possible level DOM manipulation commands per data update (not talking about glimmer here), you will always be slower than the two alternatives.
No framework - manually updating the DOM with the minimal set of changes per data change. This is unscaleable, which is why we started using frameworks in the first place.
Scrapping the DOM entirely and doing all rendering in the hardware accelerated canvas using a built from scratch DOM like structure that has all the inherent inefficiencies removed. This is usually overkill, but who knows? Maybe this is what the next framework will be.
Scrapping the DOM entirely and doing all rendering in the hardware accelerated canvas using a built from scratch DOM like >structure that has all the inherent inefficiencies removed. This is usually overkill, but who knows? Maybe this is what the next framework will be.
I was very impressed with this tech demo. It FEELS native, but the hoops to jump through and do all this seem counter intuitive since you have to keep all elements positions tracked, and then handle any events inside the canvas to look through this virtual dom.
2
u/dwighthouse Jun 02 '15
Maybe. There is no upper bound to how badly you can write ReactJS or AngularJS code. For that matter, there's no limit to how badly you can write C, C++, and assembly language code.
What matters is: Is it fast enough for the user? Is it fast enough for the developer to develop in long term both for initial development and for long term maintenance.
As a user of both, I can confidently say that, without any manual optimizations, Angular performs pretty poorly on large lists, which I frequently must work with. React is faster out of the box. The ease with which I can do custom optimizations on React is also easier and therefore more likely to happen.
When dealing with JS frameworks, unless you're doing some next generation DOM and JS code rewriting to compile away the abstractions into the lowest possible level DOM manipulation commands per data update (not talking about glimmer here), you will always be slower than the two alternatives.
No framework - manually updating the DOM with the minimal set of changes per data change. This is unscaleable, which is why we started using frameworks in the first place.
Scrapping the DOM entirely and doing all rendering in the hardware accelerated canvas using a built from scratch DOM like structure that has all the inherent inefficiencies removed. This is usually overkill, but who knows? Maybe this is what the next framework will be.