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 golang-nuts+unsubscr...@googl
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 with mostly network i/o)
I'm sure at some point you'd run into limits, probably with filehandles,
but you can definitely do this. You can use .Start() instead of .Run() on
your os.Cmd, and it's backgrounded by default. Or you ran call .Run() in
goroutines and keep track of them with a waitgroup.
--
You received this mess
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