This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: maybe-ITP: bsdiff
- From: Lapo Luchini <lapo dot luchini at gmail dot com>
- To: "[ML] CygWin-Apps" <cygwin-apps at cygwin dot com>
- Date: Sat, 28 Jan 2006 15:02:31 +0100
- Subject: Re: maybe-ITP: bsdiff
- Openpgp: id=C8F252FB
- References: <42885B02.7090107@lapo.it> <20050516110454.GA2685@calimero.vinschen.de> <20050516141802.GC15318@trixie.casa.cgf.cx> <20050516152916.GC2685@calimero.vinschen.de> <20050516155607.GH15318@trixie.casa.cgf.cx> <20050516161003.GE2685@calimero.vinschen.de> <20050516162655.GK15318@trixie.casa.cgf.cx> <20050516164557.GF2685@calimero.vinschen.de> <20050516170240.GL15318@trixie.casa.cgf.cx> <43D93D4B.7090108@lapo.it> <20060127090713.GG8318@calimero.vinschen.de> <43DB24F2.351C527C@dessent.net>
Brian Dessent wrote:
> So, let's not worry so much about the "preapproved if in linux" thing
> and just get on with the packages.
>
You're right!
Here they are: (you can safely recurse: I removed the old version from
there)
http://cyberx.lapo.it/cygwin/bsdiff/
You can use http://cyberx.lapo.it/cygwin/ as a setup.exe source, also,
thanks to genini.
Example use:
% time bsdiff /usr/bin/monotone.exe /usr/local/bin/monotone-0.26.exe
monotone-0.25-0.26.exe.bsdiff
bsdiff /usr/bin/monotone.exe /usr/local/bin/monotone-0.26.exe 31.62s
user 0.20s system 86% cpu 36.972 total
% ll /usr/bin/monotone.exe /usr/local/bin/monotone-0.26.exe
monotone-0.25-0.26.exe.bsdiff
-rwxr-xr-x 1 lapo None 7492096 Jan 1 19:31 /usr/bin/monotone.exe
-rwxr-xr-x 1 lapo None 7773696 Jan 28 14:53 /usr/local/bin/monotone-0.26.exe
-rw-rw-rw- 1 lapo None 1067464 Jan 28 14:55 monotone-0.25-0.26.exe.bsdiff
% time bspatch /usr/bin/monotone.exe monotone-0.26.exe
monotone-0.25-0.26.exe.bsdiff
bspatch /usr/bin/monotone.exe monotone-0.26.exe
monotone-0.25-0.26.exe.bsdiff 1.39s user 0.15s system 87% cpu 1.755 total
% sha1sum /usr/local/bin/monotone-0.26.exe monotone-0.26.exe
87ae6ebd80d5eda6af07c438a1d4de9b10db7e99 */usr/local/bin/monotone-0.26.exe
87ae6ebd80d5eda6af07c438a1d4de9b10db7e99 *monotone-0.26.exe
bsdiff used 126Mb for the first half or so of the work, then around 97Mb.
This is in line with what "man bsdiff" states: around 17 times the
oldfile size.
The website actually states it uses max(17*old, 9*old+new), but in this
case the first value was clearly the higher.
Lapo