Skip to content

Concurrent multipass info#120

Merged
idroz merged 4 commits intobravetools:masterfrom
Szubie:concurrent-multipass-info
Aug 4, 2022
Merged

Concurrent multipass info#120
idroz merged 4 commits intobravetools:masterfrom
Szubie:concurrent-multipass-info

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.

2 participants