From 2820f85ed96e847e27685760ef63eb8788863228 Mon Sep 17 00:00:00 2001 From: Volker Hoffmann Date: Fri, 6 Nov 2015 10:31:28 +0100 Subject: perf: use parallel chunksize of 1; otherwise one process gets stuck with all the intensive (early) outputs, and other only with easy (late) outputs -- probably adds a little of overhead, but meh --- Post/Formation/extract_wmf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Post/Formation/extract_wmf.py b/Post/Formation/extract_wmf.py index d4b9c85..8500530 100644 --- a/Post/Formation/extract_wmf.py +++ b/Post/Formation/extract_wmf.py @@ -75,7 +75,7 @@ for istep, nstep in enumerate(nsteps): # Loop Steps print "// Computing WMF & Sources for %i Steps" % len(targets) pool = mp.Pool(processes=args.np) -result = pool.map(fh.compute_wmf_wrapper, targets) +result = pool.map(fh.compute_wmf_wrapper, targets, 1) pool.close() pool.join() -- cgit v1.1