bzip

tradeoffs of different compression algorithms

What are the tradeoffs of the different compression algorithms? The purpose is backup, transfer & restore. I don't care about popularity, as long as a mature enough tool exists for unix. I care about time cpu memory compression level the algorithms I am considering are zip bzip gzip tar others? ...

Only decompress a specific bzip2 block

Say I have a humongous bzip2 file (over 5GB), and say I want to decompress only block #x, because there is where my data is (block is different every time). How would I do this. I have thought about making an index of where all the blocks are, then cut the block I need from the file and apply bzip2recover to it. I have also thought abo...

parsing large compressed xml files, python

file = BZ2File(SOME_FILE_PATH) p = xml.parsers.expat.ParserCreate() p.Parse(file) Here's code that tries to parse xml file compressed with bz2. Unfortunately it fails with a message: TypeError: Parse() argument 1 must be string or read-only buffer, not bz2.BZ2File Is there a way to parse on the fly compressed bz2 xml files? Note: p...

TokyoCabinet's Ruby C interface can't bzip

I'm using the Ruby official Ruby C interface and am not able to bzip working. It did build with bzip support, ./configure said: checking bzlib.h usability... yes checking bzlib.h presence... yes checking for bzlib.h... yes So I wrote this example program that just writes an entry to two files, one supposedly bzip'd and one not. Neithe...

Encrypt the file for security

Actually I have a file . I am working in linux environment. I need to encrypt that file for secure purpose with giving the some password. The operation could be like zip , tar any compression. When I extract the file It should ask me password , only then it should get extracted Thanks in Advance ...

ZIPX Compression Method 2048

Hi, I have a zipx file that is using compression method 2048. I know that the ZIPX format uses one of four compression methods (LZMA, BZIP2, PPMd, WavPack). The compression method number associated with each of these methods is: LZMA (14) BZIP2 (12) PPMd (98) WavPack (97) Does someone understand what compression method 2048 stand...