[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#871835: marked as done (speed up for debootstrap)



Your message dated Sun, 23 Dec 2018 10:04:07 +0000
with message-id <E1gb0cB-0003eM-Bn@fasolo.debian.org>
and subject line Bug#871835: fixed in debootstrap 1.0.112
has caused the Debian Bug report #871835,
regarding speed up for debootstrap
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
871835: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871835
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Severity: normal
Tags: patch

I've wrote some patches, which speed up deboostrap a lot.
Changes are only made to /usr/share/debootstrap/functions, mostly in
the perl part, but also the number of lines that are proceeded by
perl are reduced via egrep.

Here are some time measures on a 4-core machine, the target directory
is inside a tmpfs and a local mirror in the same subnet is used.

old version 1.0.89
real    1m26.940s
user    1m24.180s
sys     0m2.420s


including the patches
real    0m39.481s
user    0m50.444s
sys     0m2.748s


If you have any questions concerning the patches, just ask me.

Attachment: 0001-optimize-code-make-debootstrap-faster.patch
Description: Binary data

Attachment: 0002-use-hash-instead-of-grep-for-each-line-we-read.patch
Description: Binary data

Attachment: 0003-we-can-use-elsif-because-the-line-can-t-match-both-p.patch
Description: Binary data

Attachment: 0004-There-s-no-need-to-print-the-dependencies-for-each-p.patch
Description: Binary data

Attachment: 0005-we-can-get-the-size-by-using-stat-instead-of-reading.patch
Description: Binary data

Attachment: 0006-do-not-read-all-lines-of-the-Packages-file-into-the-.patch
Description: Binary data

-- 
regards Thomas

--- End Message ---
--- Begin Message ---
Source: debootstrap
Source-Version: 1.0.112

We believe that the bug you reported is fixed in the latest version of
debootstrap, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 871835@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hideki Yamane <henrich@debian.org> (supplier of updated debootstrap package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 23 Dec 2018 18:24:00 +0900
Source: debootstrap
Binary: debootstrap debootstrap-udeb
Architecture: source
Version: 1.0.112
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Hideki Yamane <henrich@debian.org>
Description:
 debootstrap - Bootstrap a basic Debian system
 debootstrap-udeb - Bootstrap the Debian system (udeb)
Closes: 871835
Changes:
 debootstrap (1.0.112) unstable; urgency=low
 .
   [ Thomas Lange ]
   * optimize code, make debootstrap faster (Closes: #871835)
     - use hash instead of grep for each line we read
     - we can use elsif, because the line can't match both patterns
     - There's no need to print the dependencies for each package separately,
       if when later do sort|uniq, so just collect all dependencies in a hash
       and print them at the end
     - do not read all lines of the Packages file into the perl scripts,
       egrep is used for filtering only the lines we need to read, since egrep
       is faster than perl, this save a lot of time
     - speed up by using grep -P and setting LC_ALL=C
     - automatic detect if grep support perl regex
     - in this part, we only need the package name and priority this makes
       another little speedup, since the perl part need less lines to parse
Checksums-Sha1:
 ee20767c5869fc19d184166896e437683f0195e7 1988 debootstrap_1.0.112.dsc
 4ffdda3c3104716a886712bfb0110afb2a22c1ec 75438 debootstrap_1.0.112.tar.gz
 7cf6d46f0e1f4f6cb04ed28aa081e9b4527c60d3 5784 debootstrap_1.0.112_amd64.buildinfo
Checksums-Sha256:
 f525a8d5666956ac4ceffc9eaeedfd2d552677a5683b74c5a14596b7ed762303 1988 debootstrap_1.0.112.dsc
 0a6e08fe363e2367a24a7019555d37beec4faf0b5bb881e5e3b00581909cfadc 75438 debootstrap_1.0.112.tar.gz
 9a6fbd9317d530473d81a948f4c8552ac2915aac025ce49837c40b53af3cd6c3 5784 debootstrap_1.0.112_amd64.buildinfo
Files:
 620b75a31e6c4f8893dbd90dcc7be02c 1988 admin optional debootstrap_1.0.112.dsc
 4c8f2d2476713d2a254b9d1d6b81e08e 75438 admin optional debootstrap_1.0.112.tar.gz
 5579c011e50df6eb5fb8d7f9d161a2ff 5784 admin optional debootstrap_1.0.112_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEWOEiL5aWyIWjzRBMXTKNCCqqsUAFAlwfWcYACgkQXTKNCCqq
sUDsUhAAjSfO/B/vPK/EaeA2TWH01jiwca6RyBFFMLTj9cQgdwsnpfN3FRrFBkh8
2QOxvwfKDaEli9bC2EG4SL3fmPovseMTlVfhzRPwZV2meRJYzcprats0/CX8QEHD
hv3QsJ4bq52JOnCMHW9cxCLCxs1kNhJdNfOqREA++r1Gk6RsigXMulbttlTjHV6M
oKHxnX4FhCuFEvK2oo81CXO5fbd9c1IUxPcFqmGiwVfE/76Lna5fI85vo78ccCdu
TLWSoUeaIPB1UQkP5v50yh9sfXpMxk/2Vx9hoBYTqrHtN1Wjfy7+cXnFcREK/Oom
pQEbftd2GnDFTFkiCIyq00FLF8d6IF07mPQreEiiYj9BvaQxaqU61zGW+jLmi5Vu
JV3I3uR5P97w91kUqKZVeax1WX5rWOmAMRiBEnS2A6DNhHAo/iS1yCTy+VJ26/Jo
N8X+oc4Q2t2rNY+e/wEv1fucHD3TB9qhYQfxr3XKjAqN65cO5EK9oYuMd8wfEUGU
2h90cMAa7N93V5WPZFzsilcsQ7rljNf9tuEoj9ygVOZLW9j0XgbVT5/k2JBjmUtT
7JXAGe9v1h9F4WlUJQVILdqnpIZiHPN3cZd9m3iRRlB7c/AagfE0zf1Z3d1sdSxU
wD5ii6qCT9zep6lPI6NBaT9bFrI0jIuMbSpO5i5H7exf77D1KF0=
=PUQM
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: