-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use multiple processes for small bags
Turns out that if you hand bagit.make_bag() a number of processes > 1, it will always create a multiprocess pool of that size, and creating that pool is slow. The new code checks that the number of items in a bag directory is more than the number of processes requested before it uses multiple processes.
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters