From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 09:26:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8818016A420 for ; Sat, 5 Nov 2005 09:26:24 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 237D443D5A for ; Sat, 5 Nov 2005 09:26:23 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.54) id 1EYKJZ-0006fU-Sd; Sat, 05 Nov 2005 09:26:23 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.50) id 1EYKJY-0006tf-NH; Sat, 05 Nov 2005 09:26:20 +0000 Date: Sat, 5 Nov 2005 09:26:20 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Kirk Strauser In-Reply-To: <200511041356.53629.kirk@strauser.com> Message-ID: References: <200511040956.19087.kirk@strauser.com> <200511041129.17912.kirk@strauser.com> <0BC163E3-5E1D-4E7D-B7AD-C92AAA616228@mac.com> <200511041356.53629.kirk@strauser.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: -1.4 X-Spam-Level: - Cc: freebsd-questions@freebsd.org Subject: Re: Fast diff command for large files? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2005 09:26:24 -0000 On Fri, 4 Nov 2005, Kirk Strauser wrote: > > 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... > 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.