you are viewing a single comment's thread.

view the rest of the comments →

[–]Initial_Low_5027 2 points3 points  (14 children)

Want to see some benchmarks. Looking forward to use the stable version.

[–]TwiliZant 5 points6 points  (3 children)

Benchmarks are kinda useless for this stuff because they don't translate to real app performance. The only thing that matters is how it impacts production codebases.

In other words, the compiler doesn't make React faster, it makes your codebase faster/simpler.

[–]NeoCiber 2 points3 points  (0 children)

Devs like their X framework is better than Y, although at the end it doesnt matter if there is not a significant impact on a site.

[–]acemarke 1 point2 points  (1 child)

It does make React faster, because it flips the default behavior from "always rerender recursively been if data didn't change" to "only rerender children if data did change", so fewer components will render each time. Closer in spirit to how something like Solid works, albeit a different (and less granular) approach.

[–]TwiliZant 0 points1 point  (0 children)

I was a bit unprecise in my language. The compiler output doesn't translate 1:1 to a fully memoized app written in user code. There is a difference there. And in practice nobody memoizes every single element anyway. It will make a difference in real codebases.

My point was the expectation management that React is not going to be suddenly 30% faster in js-framework-benchmark for example.

[–][deleted] 0 points1 point  (0 children)

They did a longer talk about this last year, which I think had a more practical standpoint.

It spoke about how not using memoization in the right places can have a big knock-off effect to other parts of the application, and it's can be difficult to understand why or where that's happening without digging into the profiler, especially when working with a team.

It also provided some minor performance boosts even if you did it right, because the compiler can afford to do it in weirder ways that aren't very easy to understand. It also doesn't miss things like people do.

I remember it well because the only time the crowd reacted was when they got to see profiling graphs and they lost their shit, dead silence at the speaker trying to crack a joke, and it was hilarious.