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

perf: optimize element performance #5800

Merged
merged 7 commits into from
Jun 3, 2024
Merged

perf: optimize element performance #5800

merged 7 commits into from
Jun 3, 2024

Conversation

Aarebecca
Copy link
Contributor

@Aarebecca Aarebecca commented Jun 1, 2024

  • 进一步优化元素性能,移除 util 中 isType 的使用

在绘制大量元素的过程中,isType 会大量调用,使用原生 typeof 性能会略好一些

  • 新增 20000 元素绘制案例(实际 1.5 W 左右),耗时约 650ms
  • 修正 Background 插件问题
  • 优化 3D 图形渲染性能(缓存 geometry)

  • Optimize element performance, remove the use of isType in util

During the process of drawing a large number of elements, isType will be called a lot, using native typeof performance will be slightly better

  • 20000 element drawing cases (actual about 1.5W), Takes about 650ms
  • To fix Background plugin issues
  • Optimize 3D graphics rendering performance (by caching geometry)

@Aarebecca Aarebecca merged commit 1c9fb18 into v5 Jun 3, 2024
3 of 5 checks passed
@Aarebecca Aarebecca deleted the perf/optimize-element branch June 3, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant