Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

选择大量节点的时候,计算选框长宽的函数会重复执行很多次,导致选框渲染速度特别慢(同样的问题,删除函数也是执行了cells个数的2倍) #1310

Closed
xinxincat opened this issue Sep 3, 2021 · 2 comments · Fixed by #1393
Labels
stale Issue that may be closed soon due to the original author not responding any more. type: bug 缺陷 Defects and unexpected behaviors

Comments

@xinxincat
Copy link

xinxincat commented Sep 3, 2021

选择大量节点的时候,计算选框长宽的函数会重复执行很多次,导致选框渲染速度特别慢(比如600个节点,函数会执行600次,渲染选框要十几秒)
同样的问题在删除函数中也一样存在,删除2个节点,同一个removeCells()函数执行了节点数量的2倍。删除节点一两千个的时候,浏览器会崩溃

重复执行多次的代码部分:
选择节点函数:
1630649171045_6E3AD07C-8522-402f-B65B-A0C3DEE8DE4A
删除函数
image

以下是视频截图:

20210903140419-.PDF.mp4
@xinxincat xinxincat added the type: bug 缺陷 Defects and unexpected behaviors label Sep 3, 2021
@xinxincat xinxincat changed the title 选择大量节点的时候,计算选框长宽的函数会重复执行很多次,导致选框渲染速度特别慢 选择大量节点的时候,计算选框长宽的函数会重复执行很多次,导致选框渲染速度特别慢(同样的问题,删除函数也是执行了cells个数的2倍) Sep 3, 2021
@xinxincat
Copy link
Author

xinxincat commented Sep 3, 2021

添加节点,限制函数多次重复执行,暂时缓解这个渲染的性能问题。
image

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 24, 2021

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the AntV community! 💪💯

@x6-bot x6-bot bot added the stale Issue that may be closed soon due to the original author not responding any more. label Sep 24, 2021
@xinxincat xinxincat reopened this Sep 29, 2021
@NewByVector NewByVector linked a pull request Oct 1, 2021 that will close this issue
15 tasks
@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Oct 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale Issue that may be closed soon due to the original author not responding any more. type: bug 缺陷 Defects and unexpected behaviors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants