Fiber

https://conf2017.reactjs.org/speakers/lin

演示动画,左边卡顿,右边流畅

Untitled

Untitled

react的思想应用:

hardware / virtual reality / native apps

render可以是任意平台

Untitled

1s 60帧的体验很好,但是user code可能让代码执行太频繁,导致跳过了某些渲染。

Untitled

解决方法:让update更好的批量执行

举例:你的代码只有一个线程可以执行,在执行js的时候你不能再做layout

方式:minimizing dom changes

teach main thread:

how split up work and how to prioritize work

之前的reconciler工作方式【stack reconciler】

Untitled

以前的工作方式下,工作的递归调用栈会越来越深,没办法回到最上层工作

Untitled