Skip to content

[5.0] [Performance] Remove chunk in List storage #13339

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

Merged
merged 6 commits into from
Sep 25, 2020
Merged

Conversation

pissang
Copy link
Contributor

@pissang pissang commented Sep 24, 2020

This pull request is about to remove chunks in List. It makes the storage structure much flatter. And brings less and more maintainable code and faster access to storage.

We fiirst brought chunk into echarts is for reducing the possibility of clone storage in appendData. But we found the extra cost to access by chunk is much more than the cost it saved from cloning TypedArray. So we decide to remove it.

The following screenshot can demonstrate the performance improvement:

Before & After

@echarts-bot
Copy link

echarts-bot bot commented Sep 24, 2020

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

@pissang pissang merged commit 529504b into next Sep 25, 2020
@echarts-bot
Copy link

echarts-bot bot commented Sep 25, 2020

Congratulations! Your PR has been merged. Thanks for your contribution! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants