[go-nuts] Question on os.Cmd() and go routines

2017-08-05 Thread Dave Cheney
Don't discount the power of xargs and gnu parallel for solving problems like this. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [go-nuts] Question on os.Cmd() and go routines

2017-08-05 Thread Christopher Nielsen
I recently wrote a concurrent tool using channels and goroutines and saw a 10x improvement over the sequential tool, and that is without any tuning. So I'd say that yes it is possible. On Sat, Aug 5, 2017 at 9:13 AM, Mandolyte wrote: > I have a command line program (Java

[go-nuts] Question on os.Cmd() and go routines

2017-08-05 Thread Mandolyte
I have a command line program (Java with mostly network i/o) that I must run several 100K times each with its own input. Wondered whether external commands are amenable to concurrency? Or whether best to run multiples copies dividing up the inputs so each copy has its own, say 100K values? Any