Java Deflater strategies - DEFAULT_STRATEGY, FILTERED and HUFFMAN_ONLY
Posted
by Keyur
on Stack Overflow
See other posts from Stack Overflow
or by Keyur
Published on 2010-03-26T22:23:31Z
Indexed on
2010/03/26
23:13 UTC
Read the original article
Hit count: 335
I'm trying to find a balance between performance and degree of compression when gzipping a Java webapp response.
In looking at the Deflater class, I can set a level and a strategy. The levels are self explanatory - BEST_SPEED to BEST_COMPRESSION.
I'm not sure regarding the strategies - DEFAULT_STRATEGY, FILTERED and HUFFMAN_ONLY
I can make some sense from the Javadoc but I was wondering if someone had used a specific strategy in their apps and if you saw any difference in terms of performance / degree of compression.
Thanks, Keyur
© Stack Overflow or respective owner