Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Nov 2005 09:26:20 +0000 (GMT)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        Kirk Strauser <kirk@strauser.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Fast diff command for large files?
Message-ID:  <Pine.GSO.4.62.0511050924280.20766@mail.ilrt.bris.ac.uk>
In-Reply-To: <200511041356.53629.kirk@strauser.com>
References:  <200511040956.19087.kirk@strauser.com> <200511041129.17912.kirk@strauser.com> <0BC163E3-5E1D-4E7D-B7AD-C92AAA616228@mac.com> <200511041356.53629.kirk@strauser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 4 Nov 2005, Kirk Strauser wrote:

> <thinking out loud>
> I wonder if rsync could be modified to output its patches rather than 
> silently applying them to a target file.  It seems to be pretty good at 
> comparing large files quickly...
> </thinking>

More thinking out loud: since these are database dumps, they're 
order-independent. So, sort the files into a predictable lexical order, 
then a diff is a linear operation over tonight's file versus last 
night's.


-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
Rereleasing dolphins into the wild since 1998.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.62.0511050924280.20766>