Skip to content

FR: Support N commands x M args #84

@mmlb

Description

@mmlb

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions