Skip to content

Use GNU parallel to speed up #3

Description

@yegle

Example command:

parallel --halt now,success=1 -u -N0 python vanity_npub.py -j1 TARGET ::: {0..$(nproc)}

Explanation:

  • --halt now,success=1: stop all commands as soon as one of them returned success
  • -u: do not group output by commands
  • -N0: the command takes 0 argument (essentially, run the same command X times)
  • ::: {0..$(nproc)}: generate # of commands matches # of CPUs

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