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

Bug#871835: speed up for debootstrap



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

Reply to: