Control: reassign -1 dpkg-dev
Control: severity -1 wishlist
Control: retitle -1 dpkg-source: new field Tarsum with a tree hash in .dsc to 
possibly skip reunpacking the tarballs on build
Control: user [email protected]
Control: usertag -1 new-field dsc-format dpkg-source

On Sat, 2013-08-31 at 18:04:40 -0700, Shawn Landden wrote:
> Package: dpkg
> Version: 1.17.2
> Severity: normal

> It would have the output of:
> find <sourcedir> -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum
> 
> This way the very slow step of verifying that the dir tree hasn't
> changed can be done very fast, without re-unpacking the source tarball,
> and just comparing the value, to the same run on the build tree.

Hmm, that implies that to build a new version the previous .dsc file
needs to be available, I'd rather not make the code having to poke on
previous .dsc files.

Also currently before doing a diff, the trees are compared until a path
does not match, as a speed up. Unpacking a new tree is going to be
somewhat slow, but hashsing the entire tree is going to be slow too,
and with that it cannot bail out early. So for large trees I'm not
sure if the performance difference is going to be so significant. More
so with an operation (building) which is supposedly done seldomly
(once, while extracting is done many times), and while optimizing it
would be nice, I don't think this specific proposal is the right
direction to follow.

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to