SHA256
Commands run inside a clone spawned up to 11 Git processes, and pull request lookups read every page one request at a time, which made common commands slow. Git probes are now read once per command and concurrently, and any other Git command clears them. List pages and independent searches run concurrently, and `pr view --json` skips reviews it does not need. Medians of 15 to 21 interleaved runs of `main` and this branch against a local fake server with 500 open pull requests: | Command | 30 ms latency | No latency | |---|---|---| | `pr status` in a clone | 732 → 348 ms | 137 → 62 ms | | `pr view` on the current branch | 583 → 283 ms | 124 → 62 ms | | `pr checks` on the current branch | 528 → 240 ms | 124 → 61 ms | | `status` in a clone | 352 → 154 ms | 80 → 40 ms | | `issue list` in a clone | 114 → 72 ms | 78 → 39 ms | | `pr list -R` | 49 → 49 ms | 15 → 15 ms | Reviewed-on: https://gitea.com/gitea/cli/pulls/103 Reviewed-by: TheFox0x7 <[email protected]>