Update to how similar messages matching is handled when updating po files from pot one (gain something like 20% in heavy update situations, and save a nice bunch of memory!).
This commit is contained in:
@@ -97,10 +97,13 @@ def main():
|
||||
if os.path.exists(po):
|
||||
pool_data.append((po, lang, pot_msgs))
|
||||
|
||||
with concurrent.futures.ProcessPoolExecutor() as executor:
|
||||
for r in executor.map(process_po, pool_data, timeout=600):
|
||||
if r != 0:
|
||||
ret = r
|
||||
for r in map(process_po, pool_data):
|
||||
if r != 0:
|
||||
ret = r
|
||||
#with concurrent.futures.ProcessPoolExecutor() as executor:
|
||||
#for r in executor.map(process_po, pool_data, timeout=600):
|
||||
#if r != 0:
|
||||
#ret = r
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user