xpyjs / gantt

An easy-to-use Gantt component. 持续更新,中文文档
https://docs.xiaopangying.com/gantt/
MIT License
243 stars 41 forks source link

[BUG] UI freezes with large dataset #107

Closed tesla-cat closed 2 months ago

tesla-cat commented 2 months ago

ganttData (1).json

1719399996022

1719400037861

jeremyjone commented 2 months ago

no one can render 10w+ rows in a flash

tesla-cat commented 2 months ago

@jeremyjone

i believe there is definitely room to improve

my own virtual table component renders the same dataset in a flash

i believe you also use virtual rendering under the hood right?

jeremyjone commented 2 months ago

If you can, I look forward to you can submit a pr to help it do better😊

tesla-cat commented 2 months ago

@jeremyjone

but may i know if you are using virtual rendering already or not 😂

jeremyjone commented 2 months ago

I do not have this requirement, max the number of 10,000 rows I used. More optimization, I do not need, there is no need to update. You can pr and improve this component. hhhhhhh😁

jeremyjone commented 2 months ago

I used vir render, but its code by myself

tesla-cat commented 2 months ago

@jeremyjone

turns out I made a mistake in my initial problem statement, there are only ~ 12,000 tasks in this data, it is not a big dataset.

and i found that the main issue is with 11,330 links, (it renders immediately if I remove the links), are you also virtual rendering the links?

我发现主要问题是 11,330 个 links 的渲染, 去掉links 后渲染很顺畅, links 也有使用 虚拟渲染吗

can you please reopen the issue?