Commit 9a94079
fix: speed up gopls lint with parallel processing
The gopls check was slow (~3.5 minutes) because it processed all ~2800
Go source files sequentially. This change:
1. Installs gopls once instead of using 'go run' each time
2. Uses xargs with parallel execution (-P nproc) to process files
in batches of 100 across all available CPU cores
This reduces the lint time from ~3.5 minutes to ~1 minute (about 68%
faster).
Closes #121
Co-Authored-By: Greg Slepak <contact@taoeffect.com>1 parent b589b12 commit 9a94079
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
14 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
0 commit comments