We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例子可以看下面的链接:
vue
react
把节点渲染出来,fre 要耗时更久一些,猜测是因为 const threshold: number = 5 的原因。
const threshold: number = 5
https://github.com/frejs/fre/blob/master/src/schedule.ts#L4
The text was updated successfully, but these errors were encountered:
fre 默认开启时间切片,所以这种同步测试会比较吃亏
Sorry, something went wrong.
我回来了,你这个测试的是首屏的性能指标,首屏幕 fre 要比 vue/react 要慢的,原因如下:
所以这个 benchmark 用例,fre 会更慢,但是如果你写一个复杂的更新逻辑的时候,react 则会变成最慢的那个
因为 fre 的 diff 算法本质上和 inferno/vue3 原理相同,fre 用的最长公共子序列,inferno 用的最长递增子序列,这基本上是最快的 diff 算法了
No branches or pull requests
例子可以看下面的链接:
vue
react
把节点渲染出来,fre 要耗时更久一些,猜测是因为
const threshold: number = 5
的原因。https://github.com/frejs/fre/blob/master/src/schedule.ts#L4
The text was updated successfully, but these errors were encountered: