ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Compress-LZF/LZF.pm
(Generate patch)

Comparing Compress-LZF/LZF.pm (file contents):
Revision 1.18 by pcg, Thu Mar 3 17:10:16 2005 UTC vs.
Revision 1.24 by root, Wed May 9 13:10:43 2007 UTC

1=head1 NAME 1=head1 NAME
2 2
3Compress::LZF - extremely light-weight Lev-Zimpel-Free compression 3Compress::LZF - extremely light-weight Lempel-Ziv-Free compression
4 4
5=head1 SYNOPSIS 5=head1 SYNOPSIS
6 6
7 # import compress/decompress functions 7 # import compress/decompress functions
8 use Compress::LZF; 8 use Compress::LZF;
23LZF is an extremely fast (not that much slower than a pure memcpy) 23LZF is an extremely fast (not that much slower than a pure memcpy)
24compression algorithm. It is ideal for applications where you want to save 24compression algorithm. It is ideal for applications where you want to save
25I<some> space but not at the cost of speed. It is ideal for repetitive 25I<some> space but not at the cost of speed. It is ideal for repetitive
26data as well. The module is self-contained and very small (no large 26data as well. The module is self-contained and very small (no large
27library to be pulled in). It is also free, so there should be no problems 27library to be pulled in). It is also free, so there should be no problems
28incoporating this module into commercial programs. 28incorporating this module into commercial programs.
29 29
30I have no idea wether any patents in any countries apply to this 30I have no idea wether any patents in any countries apply to this
31algorithm, but at the moment it is believed that it is free from any 31algorithm, but at the moment it is believed that it is free from any
32patents. 32patents.
33 33
84function automatically detects all the different sfreeze formats. 84function automatically detects all the different sfreeze formats.
85 85
86=head2 Compress::LZF::set_serializer $package, $freeze, $thaw 86=head2 Compress::LZF::set_serializer $package, $freeze, $thaw
87 87
88Set the serialize module and functions to use. The default is "Storable", 88Set the serialize module and functions to use. The default is "Storable",
89"Storable::mstore" and "Storable::mretrieve", which should be fine for 89"Storable::net_mstore" and "Storable::mretrieve", which should be fine for
90most purposes. 90most purposes.
91 91
92=head1 SEE ALSO 92=head1 SEE ALSO
93 93
94Other Compress::* modules, especially Compress::LZV1 (an older, less 94Other Compress::* modules, especially Compress::LZV1 (an older, less
109package Compress::LZF; 109package Compress::LZF;
110 110
111require Exporter; 111require Exporter;
112require DynaLoader; 112require DynaLoader;
113 113
114$VERSION = '1.401'; 114$VERSION = '1.8';
115@ISA = qw/Exporter DynaLoader/; 115@ISA = qw/Exporter DynaLoader/;
116%EXPORT_TAGS = ( 116%EXPORT_TAGS = (
117 freeze => [qw(sfreeze sfreeze_cr sfreeze_c sthaw)], 117 freeze => [qw(sfreeze sfreeze_cr sfreeze_c sthaw)],
118 compress => [qw(compress decompress)], 118 compress => [qw(compress decompress)],
119); 119);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines