I've often found that for many commands running N procs with M args will complete faster than MxN commands with just 1 arg each. This is what xargs does by default and gnu parallel supports with its -X arg. I'd love if rust-parallel could support gnu-parallel's -X (which give default xargs like behavior, namely as many args as can fit). I don't have a need for but it would probably be good to support -N to specify the number of cli args too.
I'd be happy to give it a go with a PR if this makes sense to add in, if so I'd appreciate any tips for the implementation (my rust is pretty n00b level).
I've often found that for many commands running N procs with M args will complete faster than MxN commands with just 1 arg each. This is what
xargsdoes by default and gnu parallel supports with its-Xarg. I'd love if rust-parallel could support gnu-parallel's-X(which give default xargs like behavior, namely as many args as can fit). I don't have a need for but it would probably be good to support-Nto specify the number of cli args too.I'd be happy to give it a go with a PR if this makes sense to add in, if so I'd appreciate any tips for the implementation (my rust is pretty n00b level).