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

Parse vehicle parameter table once #445

Merged

Conversation

rafaellehmkuhl
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl commented Aug 22, 2023

With the previous implementation, the reactive property of the store was updated hundreds of times on the initial parsing, leading to a performance bottleneck.

The new implementation parse the entire metadata and then assign it to the reactive property, so it prevents unnecessary reactive calculations.

Fix #362.

Parsing went from 1.2 seconds to 12 milliseconds.

With the previous implementation, the reactive property of the store was updated hundred of times on the initial parsing, leading to a performance bottleneck.
The new implementation parse the entire metadata and then assign it to the reactive property, so it prevents unnecessary reactive calculations.
@patrickelectric patrickelectric merged commit 1e45f63 into bluerobotics:master Aug 23, 2023
5 checks passed
@rafaellehmkuhl rafaellehmkuhl deleted the solve-startup-stuck branch August 23, 2023 17:28
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.

Interface freezes on vehicle connection
2 participants