Skip to content

Conversation

@benmccann
Copy link
Contributor

@benmccann benmccann commented Nov 4, 2019

Only review the last commit. The other commits are from #6576, which this depends on. I will rebase it after that PR is committed.

From a developer's point of view, the new APIs are purely more powerful since the interaction methods now return the datasetIndex and index as well. Previously these were private variables inside Element

Right now Element holds a few things that it doesn't really need to. This has a memory impact since an Element is created for every data point and held throughout the life of the chart. Chart.js has relatively high memory requirements compared to some other libraries and I think we can improve our standing on this front.

This alone probably doesn't have that large of an impact on performance, but there are additional performance improvements this will unblock that should be very impactful especially in the case that animations are disabled.

@benmccann benmccann added this to the Version 3.0 milestone Nov 4, 2019
@benmccann
Copy link
Contributor Author

Will open a new PR with the rebased version

@benmccann benmccann closed this Nov 5, 2019
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