Skip to content

Speed up the dstack project list command #3133

@jvstme

Description

@jvstme

Problem

I have 9 projects configured and dstack project list takes 20 seconds for me, which is too long. Most of the time is spent fetching usernames from the API.

Solution

Possible solutions, not mutually exclusive:

  • Only show the USER column when --verbose is passed.
  • First show placeholders in the USER column, then update the table as the usernames arrive.
  • Fetch usernames for different projects in parallel.
  • Cache usernames on the filesystem.

Workaround

No response

Would you like to help us implement this feature by sending a PR?

Yes

Metadata

Metadata

Assignees

Labels

enhancementA non-feature improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions