[英]GZIP Compressing http response before sending to the client
I have gzipped the response using filter. 我已经用过滤器压缩了响应。 The data received has been compressed from 50 MB to 5 MB however, it didn't result in much saving of time.
接收到的数据已从50 MB压缩到5 MB,但是并没有节省太多时间。 The time taken has reduced from 12 seconds to 10 seconds.
所需时间从12秒减少到10秒。 Is there anything else which can be done to reduce the time period?
还有什么可以减少时间的事情吗?
Initially, the data transfer over the network took 9 seconds, now it takes 6 seconds after compression and 1 sec to decompress approximately 最初,通过网络传输数据需要9秒钟,现在压缩后需要6秒钟,解压缩大约需要1秒钟。
What else can be done? 还有什么可以做的?
For the filter the possible measures are little: 对于过滤器,可能的措施很少:
size
to set. size
构造函数。 int read()
. int read()
。 For the static content: 对于静态内容:
For dynamic content generation: 对于动态内容生成:
Production environment: 生产环境:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.