antvis / G6

♾ A Graph Visualization Framework in JavaScript.
https://g6.antv.antgroup.com/
MIT License
11.03k stars 1.31k forks source link

【V5】升级v5小版本之后渲染时长明显变久 #6137

Open stella1997 opened 1 month ago

stella1997 commented 1 month ago

Describe the bug / 问题描述

渲染性能劣化

5000节点渲染5.0.1仅需要860ms,5.0.10需要耗时2192ms

Reproduction link / 重现链接

No response

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

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Chrome

Additional context / 补充说明

5000节点渲染5.0.1仅需要860ms,5.0.10需要耗时2192ms

Aarebecca commented 1 month ago

麻烦提供下测试示例呢

stella1997 commented 1 month ago
Document
Aarebecca commented 1 month ago

@stella1997 我们会尽快分析性能变化原因,感谢反馈

stella1997 commented 4 weeks ago

@stella1997 我们会尽快分析性能变化原因,感谢反馈

同时想请教下,为什么在vue工程里同一个demo渲染时间会比CDN引入也慢很多呢?CDN引入渲染1-2s,但是Vue工程中渲染达到4-5s。

Aarebecca commented 1 week ago

@stella1997 我们会尽快分析性能变化原因,感谢反馈

同时想请教下,为什么在vue工程里同一个demo渲染时间会比CDN引入也慢很多呢?CDN引入渲染1-2s,但是Vue工程中渲染达到4-5s。

不排除可能是 vite 构建的时间开销,理论上性能应该是没有区别的