antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

graph.setElementState performance issues #6313

songxiaoyu321 posted onGitHub

Describe the bug / 问题描述

页面有400个节点,批量设置选中状态 console.log( new Date().getTime()) graph.setElementState(visibleRecord); console.log( new Date().getTime()) 看了下时间要574ms,明显感觉卡顿,点数量更多时更明显 V4没有这个问题,请问有什么解决办法

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response


有更新到最新版吗,近期优化过,更新 1000 节点状态在 100ms 左右

posted by Aarebecca 8 months ago

有更新到最新版吗,近期优化过,更新 1000 节点状态在 100ms 左右

是最新版 5.0.21

posted by songxiaoyu321 8 months ago

@songxiaoyu321 建议提供下你的用例我这边测试一下

posted by Aarebecca 8 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests