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

Concurrent multipass info #120

Merged
merged 4 commits into from Aug 4, 2022
Merged

Conversation

Szubie
Copy link
Collaborator

@Szubie Szubie commented Aug 3, 2022

backend.Info is called in the course of most bravetools commands but takes an unexpectedly long time to complete on Multipass on Windows - generally several seconds (I've seen up to 9 seconds, but more commonly 8-8.5). This makes normal usage of the tool feel slow and less snappy - for example when stopping/starting multiple units there's often a delay after each command.

This change makes the calls within multipass Info concurrent, speeding up the function by a few seconds (I've saved about 2 seconds on average, from 8.6 -> 6.4 seconds). This makes a surprisingly big difference when running many small bravetools commands sequentially.

@idroz idroz merged commit ca5b539 into bravetools:master Aug 4, 2022
@Szubie Szubie deleted the concurrent-multipass-info branch August 4, 2022 23:10
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.

None yet

2 participants