-
Notifications
You must be signed in to change notification settings - Fork 7
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
X-Range performance improvements #1016
Conversation
0bd1fe1
to
7caf9b5
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.
I haven't tested this against a very large segmented x-range yet, just confirmed the labels behave as expected on a smaller plan. But I think these changes are straightforward and would be a pretty obvious improvement.
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.
Was able to verify that the caching significantly reduces the number of calls to measureText
. 🎉
…ont and sizing tweaks.
7caf9b5
to
50af9d5
Compare
* Cache x-range text measurements to improve x-range rendering performance * Use Inter for x-range labels
* Cache x-range text measurements to improve x-range rendering performance * Use Inter for x-range labels
Caches x-range text measurements. Drastically improves x-range drawing speed in certain cases. Also changes the x-range font to Inter.
Related to #959.
Test by loading a view with many x-range plots that have multiple different segments. Profile the application and ensure that x-ranges do not spend a long time computing text measurements.