Skip to content

Commit

Permalink
Use multiprocessing by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcbarn committed Jul 3, 2015
1 parent fe5307a commit e07eff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unrpyc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import glob
import itertools
import traceback
from multiprocessing import Pool, Lock
from multiprocessing import Pool, Lock, cpu_count
from operator import itemgetter

import decompiler
Expand Down Expand Up @@ -108,7 +108,7 @@ def main():
parser.add_argument('-d', '--dump', dest='dump', action='store_true',
help="instead of decompiling, pretty print the ast to a file")

parser.add_argument('-p', '--processes', dest='processes', action='store', default=1,
parser.add_argument('-p', '--processes', dest='processes', action='store', default=cpu_count(),
help="use the specified number of processes to decompile")

parser.add_argument('--sl1-as-python', dest='decompile_python', action='store_true',
Expand Down

0 comments on commit e07eff5

Please sign in to comment.