Skip to content

Commit

Permalink
FIXME: throttle characteristics
Browse files Browse the repository at this point in the history
  • Loading branch information
rralf committed May 29, 2021
1 parent 5f94e2c commit 5499f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypasta/LinuxMailCharacteristics.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def _load_characteristics(ret):
_maintainers_version = maintainers_version
_clustering = clustering
_repo = repo
p = Pool(processes=int(cpu_count()), maxtasksperchild=1)
p = Pool(processes=int(0.25*cpu_count()), maxtasksperchild=4)

missing = p.map(_load_mail_characteristic, missing, chunksize=1000)
missing = dict(missing)
Expand Down

0 comments on commit 5499f20

Please sign in to comment.