Skip to content

feat: use Go routine with limited parallelism to speed up repo scan - #3

Merged
InsomniaCoder merged 2 commits into
mainfrom
make-parallele-for-repo-scan
Feb 4, 2026
Merged

InsomniaCoder merged 2 commits into
mainfrom
make-parallele-for-repo-scan

Conversation

@InsomniaCoder

@InsomniaCoder InsomniaCoder commented Feb 4, 2026 •

Copy link
Copy Markdown
Contributor

use Go routine to speed up scanning all the repositories since in some cases we might have a lot of repositories and doing it one by one would be slow.

use errgroup to limit the parallel to 10 to not reaching GH limit, but we can expand if it's still too slow.

Use Mutex so we don't race condition the value of the metrics.

@InsomniaCoder
InsomniaCoder merged commit edc8a9b into main Feb 4, 2026
3 checks passed
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.

2 participants