On Wed, Apr 30, 2014 at 12:32 PM, <
dja...@gmail.com> wrote:
> Hi,
> is there are reason to mange pool of running goroutines ?
> use case is network server that receive requests and launch goroutines (
> short lived ) to handle requests.
> does goroutines generate garbage ?
Goroutine start/end does not create garbage.
In fact, creating a goroutine can be faster/more scalable, because (1)
goroutine creation is a purely local action while sending/receiving
from a single channel is inherently centralized and (2) distribution
of runnable goroutines can be more efficient than channel-based
load-balancing because it benefit from batching while channels are
inherently one-by-one.