Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiprocessing #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Multiprocessing #51

wants to merge 2 commits into from

Conversation

hayd
Copy link
Owner

@hayd hayd commented May 28, 2014

fixes #19

This is really just a proof of concept, but was interested to see how easy this was. Not sure I'm doing this in the best way. Should I restrict threads to cpu count - use a queue? - not sure. Need to do some time testing or look at this more carefully...

@@ -129,6 +130,10 @@ def parse_args(arguments=None):
parser.add_argument('--no-color', action='store_true',
help='do not print diffs in color')

parser.add_argument('-j', '--jobs', type=int, metavar='n', default=0,
help='number of parallel jobs; '
'match CPU count if value is less than 1')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not doing this at all (this is a copy of autopep8 arg)

@coveralls
Copy link

Coverage Status

Coverage decreased (-16.79%) when pulling 2152c95 on jobs into a0da67b on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add a jobs argument
2 participants