Performance of various general compression algorithms - some of them are unbelievably fast! - Java Performance Tuning Guide
JDK GZIP – a slow algorithm with a good compression, which could be used for long term data compression. Implemented in JDK java.util.zip.GZIPInputStream / GZIPOutputStream
. JDK deflate – another algorithm available in JDK (it is used for zip files). Unlike GZIP, you can set compression level for this algorithm, which allows you to trade compression time for the output file size. Available levels are 0 (store, no compression), 1 (fastest compression) to 9 (slowest compression). Implemented as java.util.zip.DeflaterOutputStream / InflaterInputStream
. Read full article from Performance of various general compression algorithms - some of them are unbelievably fast! - Java Performance Tuning Guide
No comments:
Post a Comment