antvis / antvis/G6

[Bug]: V5 渲染存在性能问题

Open
#7,402 4 comments 0 reactions 0 assignees View on GitHub
bug 🐛 performance
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

同渲染 500 节点,500 边。
1. 在同样节点,边,都静置的情况下,V5 一直在计算(看不出来在计算什么),V4 没有这种情况。
2. 在同样进行画布拖拽的情况下,V5 的CPU 计算一直很高,可以占用好几个核心,同时内存飙升,有内存泄露

这边 benchmark 如何衡量,如何给出来,官网的大数据量的场景示例也是 V4 的版本

V5版本

渲染节点图

Image

性能监控图

Image

***
V4版本

渲染节点图

Image

性能监控图

Image

### Reproduction link / 复现链接

_No response_

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

_No response_

### Version / 版本

Please select / 请选择

### OS / 操作系统

- [ ] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

No reproduction link, steps, version, browser, OS, files, or tests are provided. Start by creating a V5 graph with 500 nodes and 500 edges, compare it with V4 while idle and during canvas dragging, and profile CPU and memory behavior. Done means the performance regression and memory growth are identified and the comparison is improved or explained with a benchmark.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.