Parallelize `get`, `install` & `update`
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 12.4k
- Forks
- 299
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 1
Description
Parallelize get, install & update.
Parallelization is more complex for these commands than for other commands, because they update existing terminal lines to update process bars. Currently, mas just updates the current line, but parallel downloads will require different lines being updated depending on which app's progress is being updated.
When an error occurs for a single parallel operation, other operations that can succeed should be let finish.
Probably not worth parallelizing uninstall, as that should be quick & not run much.
Swift Concurrency: async let, TaskGroup & withTaskGroup.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the get, install, and update command implementations and their terminal progress-bar updates. Review Swift Concurrency's async let, TaskGroup, and withTaskGroup, then define how each app's progress remains on the correct terminal line. Done means eligible operations run in parallel and a failure in one operation does not prevent other operations from finishing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100