Re: quick dpkg-scanpackages
On Apr 06, Ben Collins wrote:
> On Thu, Apr 06, 2000 at 12:09:21PM -0600, Jason Gunthorpe wrote:
> > The FTP archive actually uses a special version of
> > dpkg-scanpackages that cooperates with dsync to cache MD5s.
> > Performance is dominated by the time it takes to unpack the
> > control tar.
> Saving having to install dsync, you could just apply the attached
> patch which uses Digest::MD5 instead of the md5sum program (make
> sure you have libdigest-md5-perl installed). I tested it and got a
> 50% increase in speed (which probably says more about the fact that
> the archive is nfs mounted than what the real speed could be).
> (scanning 249 packages) 22.83 secs (old way) 15.89 secs (new way)
I tried that initially and found it took 50% longer. Weird. Mind
you, I used md5_hex(data) instead of addfile & hexdigest, which might
have made a difference, though I wouldn't think much.