whyrusleeping / gx

A package management tool
MIT License
1.88k stars 111 forks source link

Limit the number of opened goroutines in `installDeps` #194

Open schomatis opened 5 years ago

schomatis commented 5 years ago

The installDeps function spawns on every call as many goroutines as dependencies in a package (keeping them blocked through ratelim), e.g., 80 goroutines in the first call of installDeps during go-ipfs installation.