Skip to content

perf(machine): fetch machines and default status concurrently in machine list - #2214

Open
kavix wants to merge 1 commit into
apple:mainfrom
kavix:feat/machine-list-concurrent-fetch
Open

perf(machine): fetch machines and default status concurrently in machine list#2214
kavix wants to merge 1 commit into
apple:mainfrom
kavix:feat/machine-list-concurrent-fetch

Conversation

@kavix

@kavix kavix commented Aug 29, 2026

Copy link
Copy Markdown

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Resolves #2212

In Sources/ContainerCommands/Machine/MachineList.swift, the run() method was previously fetching the list of machines (client.list()) and the default machine (client.getDefault()) sequentially.

Using Swift's concurrency (async let), these two asynchronous operations are now executed in parallel to improve command performance and reduce latency.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

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.

[Request]: Optimize MachineList command to fetch machines and default status concurrently

1 participant