You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CPU usage of Tree component v3.2.0 is 5% higher than that of v3.1.0, the UI will be stuck, and all nodes in the entire tree will be refreshed when only one node's Check state is modified
#5551
Closed
1 task
liupan1890 opened this issue
Apr 26, 2022
· 3 comments
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Tree组件v3.2.0比v3.1.0版本CPU占用提高5%,UI会卡,并且仅修改一个节点的Check状态时整树所有节点都会被刷新
The CPU usage of Tree component v3.2.0 is 5% higher than that of v3.1.0, the UI will be stuck, and all nodes in the entire tree will be refreshed when only one node's Check state is modified
Apr 26, 2022
Version
3.2.2
Environment
win10,electron 12.0.9,vue 3.2.33
Reproduction link
https://vuecomponent.github.io/issue-helper/
Steps to reproduce
1.实例化一个标准的Tree,设置了
:checkedKeys="checkedKeys"
自主控制节点选中状态2.点击一个节点的CheckBox,改变此节点的选中状态
What is expected?
1.v3.2.0版本和v3.1.0版本性能一致,没有差异
2.手动勾选这个节点时,只触发这个节点本身的dom重绘,其他节点保持不变
What is actually happening?
1.v3.2.0版本CPU平均在13%--17%
v3.1.0版本CPU平均在9%--12%,两个版本性能差异十分明显
2.手动勾选这个节点时,所有节点都会重绘
--
附上截图,对比CPU使用率,已勾选开发工具--Rendering--Paint flashing
v3.1.0截图
v3.2.0截图
The text was updated successfully, but these errors were encountered: