Hi, I am trying to send gzip content in one of our servlet. And it is working correctly. But comparing response time bet'n sending gzip content and regular content is alsmot same. Isn't gzip content response time should be faster? The page I am trying contains many images as well as lots of other text content. Then what might be the reason? Is it because my webserver and JRUN is on same physical machine? Thanks in advance.
i could believe this. a bunch of small images compressed won't be much small than a bunch of small images uncompressed. and you are still making all the same number of requests, which is probably where the bulk of the latency is.
compression is only useful when the bandwidth is narrow and message is huge. for small message or running on a broadband network, compression benefits little, cause compression also incurs an overhead.
Originally posted by danny liu: compression is only useful when the bandwidth is narrow and message is huge. for small message or running on a broadband network, compression benefits little, cause compression also incurs an overhead.
Really what danny liu mentioned above is reasonable, compression has processing overhead... If there is a broadband network, sending uncompressed message, which is small, is alright... In messaging issue like this, we always have to think about the trade-offs between processing time and delivery dealy time....
Jayson Falkner<br />email@example.com<br />Author of <a href="http://www.jspbook.com" target="_blank" rel="nofollow">Servlets and JavaServer Pages; the J2EE Web Tier</a>
Joined: Nov 26, 2001
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com