News for hackers. Stuff that matters.
Re:React Performance by latortuga on Friday July 03, 2015 @01:24PM (#9826798)
Because of the somewhat pathological benchmark design, he could probably implement a component for each picture and set shouldComponentUpdate to simply return false. With proper keys, I have a feeling the React performance would improve dramatically, perhaps as much or more as the pureRender mixin.
Re:React Performance by d4n3 on Friday July 03, 2015 @02:12PM (#9827062)
PureRenderMixin is basically shouldComponentUpdate with a shallow comparison of previous/next props and state, but the big win is avoiding render and diff for the component, so returning false would be about the same as PureRenderMixin.