]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Jul 2020 15:02:00 +0000 (17:02 +0200)
commit8d56af377c158823497df17b2ef18637bbc11a1c
tree3cd0d136d6a812afb4fe7c179300629fd7c3e6f3
parent8aa907379eb54d360746c3e15051327a1e6cc1fe
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>
debian/list-deps