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

Performance: Layered time axis takes a long time on initial render #1586

Open
Tracked by #2320
flash1293 opened this issue Feb 10, 2022 · 0 comments
Open
Tracked by #2320

Performance: Layered time axis takes a long time on initial render #1586

flash1293 opened this issue Feb 10, 2022 · 0 comments
Labels
:performance Performance related issues :xy Bar/Line/Area chart related

Comments

@flash1293
Copy link

Describe the issue
When using the layered time axis with a lot of series, the first render is relatively slow because a lot of time is spent in the multilayerAxisEntry function. Subsequent renders don't seem to suffer from this.

To Reproduce

Go to https://codesandbox.io/s/flamboyant-chaum-v6fj7?file=/src/App.tsx and hit the "Show" button. Performance profile shows it's spending > 100 ms in this function:
Screenshot 2022-02-10 at 10 57 20

This doesn't happen on subsequent calls, only initially

Expected behaviour
Not sure whether this is an issue or not as it's only happening once and seems to be cached effectively after that.

Additional context
The number of data points does not affect the timing

@flash1293 flash1293 added bug Something isn't working :xy Bar/Line/Area chart related labels Feb 10, 2022
@markov00 markov00 added :performance Performance related issues and removed bug Something isn't working labels Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:performance Performance related issues :xy Bar/Line/Area chart related
Projects
None yet
Development

No branches or pull requests

2 participants