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

Further performance improvements #679

Conversation

rafaellehmkuhl
Copy link
Member

This patch leads to a huge improvement in Cockpit's performance, as it forces resource-intensive widgets that are not visible to not re-render.

I tried using the checkVisibility property, but it does not work on our case since the elements are in the DOM, just not on top.

On my computer, it reduced the CPU usage of the Cockpit tab in about 30%. It also prevented crashes that were happening when I left Cockpit open in the background.

…is not visible

Cockpit is considered not visible if the tab was changed or if the browser window was minimized.
@rafaellehmkuhl rafaellehmkuhl marked this pull request as ready for review January 8, 2024 21:57
@patrickelectric patrickelectric merged commit c876ab7 into bluerobotics:master Jan 9, 2024
7 checks passed
@rafaellehmkuhl rafaellehmkuhl deleted the further-performance-improvements branch January 9, 2024 00:52
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.

2 participants