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

Add multithreading support #2

Merged
merged 1 commit into from
Apr 4, 2017
Merged

Conversation

alvarez-fabian
Copy link
Contributor

This commit adds multithreading support for the processing of new and existing files.
The multiprocessing was made ussing pools of workers to process every asset in a worker, with some workers running un parallel.

The number of workers can be changed with a new command line option "--threads" or "-T".
By default the number of threads is "cpu_cores + 1".
The uppercase T was used to avoid a conflict with the -t option.
If you have an idea of another possible option, please let me know.

This commit adds multithreading support for the processing of new and existing files.
The multiprocessing was made ussing pools of workers to process every asset in a worker, with some workers running un parallel.

The number of workers can be changed with a new command line option "--threads" or "-T".
By default the number of threads is "cpu_cores + 1".
Copy link
Contributor

@juanignaciomolina juanignaciomolina left a comment

Choose a reason for hiding this comment

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

Great changes @alvarez-fabian ! That multithreading looks promising ⚡️

giphy 1

@juanignaciomolina juanignaciomolina merged commit 0a960fa into master Apr 4, 2017
@juanignaciomolina juanignaciomolina deleted the add-multithreading branch April 4, 2017 20:49
@juanignaciomolina juanignaciomolina mentioned this pull request Apr 4, 2017
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.

2 participants