[v2,1/5] support/scripts/pkg-stats: Use the 'multiprocess' fork instead of 'multiprocessing'
diff mbox series

Message ID 20190719143556.14907-2-victor.huesca@bootlin.com
State Changes Requested
Headers show
  • Improve performances and feedback of different
Related show

Commit Message

Victor Huesca July 19, 2019, 2:35 p.m. UTC
This fork has a better serialization process whereas 'multiprocessing'
uses the half-broken pickle. This allow to use any kind of object for
process-pool related function. In particular this change allow
lambdas to be used as asynchronous function in 'Pool.apply_async'.

Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
 support/scripts/pkg-stats | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 7dcb2b4cbd..77819c4804 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -28,7 +28,7 @@  import json
 import certifi
 from urllib3 import HTTPSConnectionPool
 from urllib3.exceptions import HTTPError
-from multiprocessing import Pool
+from multiprocess import Pool
 INFRA_RE = re.compile(r"\$\(eval \$\(([a-z-]*)-package\)\)")
 URL_RE = re.compile(r"\s*https?://\S*\s*$")