pkgsrc-Changes archive


CVS commit: pkgsrc/mk/checksum

Module Name:    pkgsrc
Committed By:   jmmv
Date:           Sat Oct 13 15:31:23 UTC 2012

Modified Files:
        pkgsrc/mk/checksum: checksum

Log Message:
Speed up the algorithm to determine the files left to check.

This change modifies the algorithm used to keep track of the files that
have not yet been checksummed to use a simple loop instead of shell pattern

For packages with few distinfo entries, either way yields the same result
as the list of files to check is very short.  But for those packages with
hundreds of distinfo entries (vim, I'm looking at you), the difference is
huge.  In my old macppc machine, the checksum of vim used to take around
40 minutes and now it takes ~35 seconds.  The difference is also clearly
visible in my faster amd64 machine (although I haven't bothered to time it).

To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/mk/checksum/checksum

copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index