support/scripts/pkg-stats: URL check using threads
authorMatt Weber <matthew.weber@rockwellcollins.com>
Tue, 2 Oct 2018 02:37:29 +0000 (21:37 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 9 Oct 2018 08:11:47 +0000 (10:11 +0200)
commit3b657e264c593ce587bb88e02977f00529310487
treeb2f95f4869e5990eeb75a196ee738835162a8afa
parentb4da3b2603b08c2a96576b820acfdea65b1dacab
support/scripts/pkg-stats: URL check using threads

Adds a pool of worker threads to accelerate connection testing.

~7.5MB and 2% CPU per thread on a Intel i5-3230M CPU @ 2.60GHz.

Runtime is ~3min in parallel vs ~15min.

CC: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats