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

Fixing a performance problem in message display #3228

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

rupertbenbrook
Copy link
Contributor

On long flights the message display would progressively consume more CPU and memory, eventually making Mission Planner very slow. This PR fixes that problem. The cause was to do with the async calls trying to context switch between the same context and too many context. Instead, the context is now disconnected from the async calls so removing a message can happen in a different context from adding. In addition, the number of contexts being created has been reduced.

@meee1 meee1 merged commit 48e3ac5 into ArduPilot:master Nov 17, 2023
7 checks passed
@rupertbenbrook rupertbenbrook deleted the users/rupert/performance-fix branch November 20, 2023 09:56
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.

3 participants