Algorithm-GDiffDelta

 view release on metacpan or  search on metacpan

GDiffDelta.pm  view on Meta::CPAN

    # A fast adler32 digest implementation is also available:
    my $adler32 = gdiff_adler32(1, 'some data');
    $adler32 = gdiff_adler32($adler32, 'some more data');

=head1 DESCRIPTION

This module can be used to generate binary deltas describing the
differences between two files.  Given the first file and the
delta the second file can be reconstructed.

A delta is equivalent to the output of the unix C<diff> program,
except that it can efficiently represent the differences between
similar binary files, containing any sequences of bytes.  These
deltas can be used for updating files over a network (as C<rsync>
does) or for efficiently storing a revision history of changes to
a file (as Subversion does).

There are several formats used for binary deltas.  The one supported
by this module is the GDIFF format, which is fairly simple and is
documented as a W3C note (See the SEE ALSO section below).

t/data/2.new  view on Meta::CPAN

<***************************************************************************************************************************************************************************************************************************************************>
peekaboo
peekafoo

They say its the 1st half thats rocky and the latter green
foo
bar
baz
quux
This paragraph contains exactly two hundred and fifty five bytes of data,
if you include the Unix newlines in the middle and the one at the end.
It doesn't actually say anything useful, but it's useful as an example
source file in my tests.  That is all.

t/data/2.orig  view on Meta::CPAN

0123456789ABCDEF

They say its the 1st half thats rocky and the latter green

foobarbazquux

--------------------------------------------------------------------------------

This paragraph contains exactly two hundred and fifty five bytes of data,
if you include the Unix newlines in the middle and the one at the end.
It doesn't actually say anything useful, but it's useful as an example
source file in my tests.  That is all.



( run in 0.995 second using v1.01-cache-2.11-cpan-df04353d9ac )