G6
G6 copied to clipboard
highlight node performance v4 vs v5
Describe the bug / 问题描述
When I load 1000 nodes in v4, the highlighting of nodes, neighbors, and edges works smoothly. However, the performance is poor in v5. Despite trying various configurations, I found that the setElementState operation (even in bulk) is less efficient compared to v4, where each state change is iterated individually. I used this behaviour both applying 'hover-activate' and doing that manually.
difference v5 and v4 V5:
https://github.com/antvis/G6/assets/79913332/2a006ae4-44fe-4401-b192-cf0fad28ce0d
v4:
https://github.com/antvis/G6/assets/79913332/0c947a33-7756-46a5-92a0-645aacab1f4d
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Linux
Browser / 浏览器
Chrome
Additional context / 补充说明
No response