If the pool organized as a queue, in a first in last out manner, all goroutines tend to exist longer. Organize the pool as a stack maybe result in less goroutines and be more friendly to runtime scheduler.
If the pool organized as a queue, in a first in last out manner, all goroutines tend to exist longer. Organize the pool as a stack maybe result in less goroutines and be more friendly to runtime scheduler.