I’m a Golang user, and this is my first question here, if I’m asking something wrong, please remind me.
I have seen a Goroutine Pool library: https://github.com/panjf2000/ants
This library writes a Goroutine Pool. The author says the library will benefits the go’s performance. But in my opinion, Golang is already a M:N user-space thread, I think Go doesn’t need threadpool, except the user wants to maintanance priority for tasks.
So, I wonder:
- Does Golang need a “Goroutine Pool”?
- What can we benefits from a “Goroutine Pool”, and what will it lost?