This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: maybe-ITP: bsdiff


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]