nostr_vanity_npub icon indicating copy to clipboard operation
nostr_vanity_npub copied to clipboard

Use GNU parallel to speed up

Open yegle opened this issue 1 year ago • 1 comments

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

yegle avatar Feb 06 '23 07:02 yegle