-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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(pie): optimize performance of pie series #17275
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please first add a test case by npm run mktest pie-percent
to serve as benchmark to see how much improvement this PR makes.
881caf3
to
558acc1
Compare
8487163
to
3d6ec90
Compare
3d6ec90
to
55a9f77
Compare
55a9f77
to
8afad04
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The optimization for the performance of the pie series looks quite significant!
8afad04
to
08a8ad7
Compare
08a8ad7
to
6e617f2
Compare
6e617f2
to
15edecf
Compare
15edecf
to
3a6c097
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
Brief Information
This pull request is in the type of:
What does this PR do?
饼图现在的渲染有性能问题,
getPercentWithPrecision
是很消耗性能的方法,每一个数据项都需要执行一次,在 10000 个数据点的时候就能把页面卡死,可以总的执行一次再取数使用。Fixed issues
Fixes #17173
Details
Before: What was the problem?
After: How does it behave after the fixing?
Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information
没有删掉getPercentWithPrecision,因为api里面有暴露给外包
测试之前需要执行 prepublish