1 | NAME |
1 | NAME |
2 | Compress::LZF - extremely light-weight Lev-Zimpel-Free compression |
2 | Compress::LZF - extremely light-weight Lempel-Ziv-Free compression |
3 | |
3 | |
4 | SYNOPSIS |
4 | SYNOPSIS |
5 | # import compress/decompress functions |
5 | # import compress/decompress functions |
6 | use Compress::LZF; |
6 | use Compress::LZF; |
7 | # the same as above |
7 | # the same as above |
… | |
… | |
20 | LZF is an extremely fast (not that much slower than a pure memcpy) |
20 | LZF is an extremely fast (not that much slower than a pure memcpy) |
21 | compression algorithm. It is ideal for applications where you want to |
21 | compression algorithm. It is ideal for applications where you want to |
22 | save *some* space but not at the cost of speed. It is ideal for |
22 | save *some* space but not at the cost of speed. It is ideal for |
23 | repetitive data as well. The module is self-contained and very small (no |
23 | repetitive data as well. The module is self-contained and very small (no |
24 | large library to be pulled in). It is also free, so there should be no |
24 | large library to be pulled in). It is also free, so there should be no |
25 | problems incoporating this module into commercial programs. |
25 | problems incorporating this module into commercial programs. |
26 | |
26 | |
27 | I have no idea wether any patents in any countries apply to this |
27 | I have no idea wether any patents in any countries apply to this |
28 | algorithm, but at the moment it is believed that it is free from any |
28 | algorithm, but at the moment it is believed that it is free from any |
29 | patents. |
29 | patents. |
30 | |
30 | |
… | |
… | |
74 | Recreate the original object from it's serialized representation. This |
74 | Recreate the original object from it's serialized representation. This |
75 | function automatically detects all the different sfreeze formats. |
75 | function automatically detects all the different sfreeze formats. |
76 | |
76 | |
77 | Compress::LZF::set_serializer $package, $freeze, $thaw |
77 | Compress::LZF::set_serializer $package, $freeze, $thaw |
78 | Set the serialize module and functions to use. The default is |
78 | Set the serialize module and functions to use. The default is |
79 | "Storable", "Storable::mstore" and "Storable::mretrieve", which should |
79 | "Storable", "Storable::net_mstore" and "Storable::mretrieve", which |
80 | be fine for most purposes. |
80 | should be fine for most purposes. |
81 | |
81 | |
82 | SEE ALSO |
82 | SEE ALSO |
83 | Other Compress::* modules, especially Compress::LZV1 (an older, less |
83 | Other Compress::* modules, especially Compress::LZV1 (an older, less |
84 | speedy module that guarentees only 1 byte overhead worst case) and |
84 | speedy module that guarentees only 1 byte overhead worst case) and |
85 | Compress::Zlib. |
85 | Compress::Zlib. |