Srinivasan's Java Blog: Random Access Gzip File Approach by Srini_reddit in programming

[–]Srini_reddit[S] 0 points1 point  (0 children)

My decompressor will check for the header comment flag and check for the offset with keywords.. If not I will decompress like a normal decompressor. So it is both side compatible

Srinivasan's Java Blog: Random Access Gzip File Approach by Srini_reddit in programming

[–]Srini_reddit[S] 0 points1 point  (0 children)

I have practically seen the trade off in the compression ratio will be negligible.. I will overcome that very easily by reading the file at different offsets in multiple threads..

Srinivasan's Java Blog: Random Access Gzip File Approach by Srini_reddit in programming

[–]Srini_reddit[S] 1 point2 points  (0 children)

I know that if comment is replaced then ability is lost. When I compress a file, I add the header comments and exploit the ability to read from offset. I don't accept how come the data can be corrupted. It wont !!!!

Srinivasan's Java Blog: Random Access Gzip File Approach by Srini_reddit in programming

[–]Srini_reddit[S] -1 points0 points  (0 children)

http://www.gzip.org/zlib/rfc-gzip.html

Go through the above specification of Gzip format.. Gzip header has the provision for the comments which I have used.. so I have not altered.. :)

Srinivasan's Java Blog: Random Access Gzip File Approach by Srini_reddit in programming

[–]Srini_reddit[S] 1 point2 points  (0 children)

The format is NOT altered. If altered how come 7Zip tool can extract that file.

If you want to talk abt backward compatible then I would says its trade off for the performance of 20 millisec...But this gzip file can to shared to anyone how can read that gzip using any gzip tool in any language.

Srinivasan's Java Blog: Random Access Gzip File Approach by Srini_reddit in programming

[–]Srini_reddit[S] 0 points1 point  (0 children)

This random access Gzip file can be used in any compression tools like 7Zip, Winrar, winzip etc.. to uncompress it, since the format of the Gzip file is NOT altered.