Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Mar 22, 2021
1 parent dc16d2e commit a0b58e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions softchat/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

about = {
"name": "softchat",
"version": "1.0",
"date": "2021-02-22",
"version": "1.1",
"date": "2021-03-22",
"description": "convert twitch/youtube chat into softsubs",
"author": "ed",
"license": "MIT",
Expand Down Expand Up @@ -1172,7 +1172,9 @@ def gen_msgs(jd, vw, bw, ar, emote_shortcuts, have_fugashi):

initargs = [gen_msg_thr, ar, vw, bw, emote_shortcuts, have_fugashi]

with multiprocessing.Pool(j, initializer=gen_msg_initializer, initargs=initargs) as pool:
with multiprocessing.Pool(
j, initializer=gen_msg_initializer, initargs=initargs
) as pool:
# Cannot return the generator directly, since the context manager will close the pool
# 100 was picked experimentally and seems to perform well for both 4c8t and 16c/32t.
for x in pool.imap(gen_msg_thr, enumerate(jd), 100):
Expand Down

0 comments on commit a0b58e4

Please sign in to comment.