úÎ"æ"5 portable experimentalmwotton@gmail.comNone &Decompresses a string. Works for both  and  . 0Compresses a string with very high compression. Compresses a string. Compresses the input  ByteString.  Will return  . if the compression fails. Otherwise, returns  Just xs2 with the compressed string (and additionally, if xs ==  empty then compress empty == Just empty.) Compress the input  ByteString as much as possible, but comes C with a massive speed drop in compression. Decompression is faster  however and can be done with .  Will return  . if the compression fails. Otherwise, returns  Just xs2 with the compressed string (and additionally, if xs ==  empty then compressHC empty == Just empty.) Essentially defined as:  0 compressPlusHC xs = compress xs >>= compressHC BThis is an experimental interface. After regular compression, due E to output encoding, things like relative offsets in the compression E buffer or artifacts from number encoding can end up the same in the C output buffer for often repeated data. Therefore, further savings D are possible in the input buffer by compressing again. lz4 even in C high compression mode will quickly ignore already-compressed data C and remain quite fast. Thus, this interface is designed to give a  better compression/speed tradeoff than  : it doesn't > compress as well, but is nowhere near as slow. Some context:   ohttp://www.reddit.com/r/programming/comments/vyu7r/compressing_log_files_twice_improves_ratio/c58svj3?context=3 Must be decompressed with .  Will return  . if the compression fails. Otherwise, returns  Just xs2 with the compressed string (and additionally, if xs ==  empty then "compressPlusHC empty == Just empty.) Decompress the input  ByteString. $Decompress a string compressed with . Essentially  defined as: 4 decompressPlusHC xs = decompress xs >>= decompress 2Worst case compression bounds on an input string. Source Dest Size of ORIGINAL INPUT Result Source Dest  Input size Result Source Dest  Input size Result  String length Worst-case size         lz4-0.2.2Codec.Compression.LZ4c_LZ4_uncompressc_LZ4_compressHCc_LZ4_compresscompress compressHCcompressPlusHC decompressdecompressPlusHCc_LZ4_compressBoundbase Data.MaybeNothing compressorformatunformat