This patch attempts to increase performance of debian/list-deps script, using Parallel::ForkManager
Created attachment 106370 [details] [review] Bug 25889: Increase performance of debian/list-deps script to test... (on a i7-2600 vm with 8 cores) 1/ run script, note execution time $ time ./debian/update-control real 8m5.000s 2/ copy old file $ cp ./debian/control control.old 3/ apply patch 4/ run updated script, note execution time is smaller $ time ./debian/update-control real 2m14.000s 5/ copy new file $ cp ./debian/control control.new 6/ confirm old and new control files are identical $ diff control.old control.new | wc -l 0
The difference is not as good for me (4x) but it's better with the pach real 5m35.517s real 7m10.086s
Created attachment 107345 [details] [review] Bug 25889: Increase performance of debian/list-deps script to test... (on a i7-2600 vm with 8 cores) 1/ run script, note execution time $ time ./debian/update-control real 8m5.000s 2/ copy old file $ cp ./debian/control control.old 3/ apply patch 4/ run updated script, note execution time is smaller $ time ./debian/update-control real 2m14.000s 5/ copy new file $ cp ./debian/control control.new 6/ confirm old and new control files are identical $ diff control.old control.new | wc -l 0 Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Skipping QA.
Pushed to master for 20.11, thanks to everybody involved!
backported to 20.05.x for 20.05.03
enhancement, not backported to 19.11.x