News for hackers. Stuff that matters.
Re:Angular 9.0 by leeoniya on Thursday February 06, 2020 @08:40PM (#22262436)
> What happened to React?

react has always been approx where it is now. but there are a lot more faster libs in the table.

Re:Angular 9.0 by topspin on Thursday February 06, 2020 @09:57PM (#22262860)
> react has always been approx where it is now

Didn't know that. What I thought I knew is based on years of breathless claims about React's great performance. This is eye opening. Even Angular 8 does better in these benchmarks.

Re:Angular 9.0 by ng12 on Thursday February 06, 2020 @10:04PM (#22262881)
I think the breathless claims of performance are because for what React is doing -- storing the entire application tree using virtual DOM and seamlessly rendering updates -- it is really impressive. The fact that it is has similar performance as some much more naive frameworks is pretty amazing. In practice all of these frameworks are fast enough that you wouldn't notice unless you were doing something really crazy.
Re:Angular 9.0 by topspin on Thursday February 06, 2020 @10:29PM (#22262990)
Yes, it's an admirable design. I've used it. I know. And no, nothing I've done with it has been intolerably slow. Although now I'm starting to wonder about some responsiveness issues I've experienced...

I also wonder if batteries care about elegance. Not really they don't. If one makes the highly likely assumption that these micro benchmarks are a measure of efficiency then it's actually difficult to do worse than React regarding battery life, heat, etc.

Very interesting.

Re:Angular 9.0 by pier25 on Thursday February 06, 2020 @11:31PM (#22263228)
Bundle size and start time are much more important metrics IMO unless you have a high perf use case. Like you said, most of these are fast enough for the majority of uses cases.
Re:Angular 9.0 by Jasper_ on Thursday February 06, 2020 @11:38PM (#22263266)
Then why are all the React-based web apps I use so slow?
Re:Angular 9.0 by manigandham on Friday February 07, 2020 @01:31AM (#22263720)
Poor design and architecture. Doing too much and blocking the event loop, memory leaks, using too much frontend code to poorly mimic native browser features like new tabs and back buttons, uncaught exceptions that stop the javascript thread and leave the page stuck, etc.
Re:Angular 9.0 by the_gipsy on Friday February 07, 2020 @03:41AM (#22264205)
React ecosystem is centered heavily on "components". This sounds nice, but IMO it breaks down quickly on the "whole program" level. What you end up with is crazy re-renders because it doesn't make sense to "componentize" the state.
Re:Angular 9.0 by ng12 on Friday February 07, 2020 @12:14AM (#22263415)
It's probably not React itself. Most perceived performance issues I've encountered are due to architecture issues, usually relating to network calls.
Re:Angular 9.0 by leeoniya on Thursday February 06, 2020 @11:53PM (#22263334)
Re:Angular 9.0 by chrisco255 on Friday February 07, 2020 @01:24AM (#22263689)
Facebook and Twitter are slow?
Re:Angular 9.0 by wyattpeak on Friday February 07, 2020 @02:19AM (#22263878)
Facebook absolutely is, it's a beast. I find it can frequently freeze up my old laptop, which is admittedly getting past it but I have little trouble with most any other site.

I don't use Twitter, so can't comment.

Re:Angular 9.0 by scns on Friday February 07, 2020 @03:54AM (#22264257)
Try mbasic.facebook.com
Re:Angular 9.0 by M4v3R on Friday February 07, 2020 @03:00AM (#22264034)
They are, I frequently stare at half-loaded UI on Facebook, and I'm using a fairly recent Macbook Pro.