Re:Fine-grained timing and energy profiling in Servo
by andy_ppp on Thursday September 17, 2015 @07:59PM
(#10236805)
I'm pretty certain you guys on the React team have lots of increasingly clever ideas to speed up the diffing, not limited to actual functions browser vendors could add in native code that could speed this stuff up.
Generally React is 'very fast' to 'fast enough'. A very admirable situation to find yourselves in :-)
It is rare to have an expensive shouldComponentUpdate that returns true most of the time, but there is definitely a trade-off there that depends on the specifics of how data flows through your app. People like to put it on everything but we (React team) believe that it's probably best to put it in a few well-intentioned places. This tension is something we're actively thinking about.