]> git.koha-community.org Git - koha.git/commit
Bug 25889: Increase performance of debian/list-deps script
authorMason James <mtj@kohaaloha.com>
Mon, 29 Jun 2020 01:40:36 +0000 (13:40 +1200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 31 Jul 2020 20:26:48 +0000 (20:26 +0000)
commitd34e89aa85ac8223445b4bf99829631987637aef
tree440426195a2d2146e0a632076ab6648b219185b5
parente51c7a73c00b28d2e5091b021ced867fc5942b3b
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>
(cherry picked from commit 8d56af377c158823497df17b2ef18637bbc11a1c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
debian/list-deps