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

Bugfix/chart memory leak #1692

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Bugfix/chart memory leak #1692

merged 4 commits into from
Jun 21, 2024

Conversation

imaNNeo
Copy link
Owner

@imaNNeo imaNNeo commented Jun 21, 2024

Fixes #1106

As we don't have any quick solution to fix the issue, I will disable the caching for now. The trade off is that we need to calculate the min, max values based on the data (if it is not provided) in every frame.
I wrote in the documentation that it is more performant if you provide these parameters.

Btw, for the final fix (resolve the performance issue if you haven't provided the parameters), we need to move the calculation logic into the renderer objects as they remain in the memory as long as widget exists. So this way, we don't need to calculate the values in every frame. We just keep and calculate them once the data is changed in the renderer objects that we have.

… in the lineChart, it caused some memory issues, we will remove the caching for now, but later we have to move the calculations into the renderers to keep and update the values when the data changes, #1106
…hart, it caused some memory issues, we will remove the caching for now, but later we have to move the calculations into the renderers to keep and update the values when the data changes, #1106
… in the scatterChart, it caused some memory issues, we will remove the caching for now, but later we have to move the calculations into the renderers to keep and update the values when the data changes, #1106
@imaNNeo imaNNeo merged commit f21968f into main Jun 21, 2024
4 checks passed
@imaNNeo imaNNeo deleted the bugfix/line-chart-memory branch June 21, 2024 11:46
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.

Memory leaking with changing spot list
1 participant