为http压缩选择gzip over deflate是否有任何性能损失? [英] Is there any performance hit involved in choosing gzip over deflate for http compression?

查看:227
本文介绍了为http压缩选择gzip over deflate是否有任何性能损失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近将一些网站从deflate切换到gzip,并注意到我们服务器上的CPU负载显着增加。

We recently switched some of our sites from deflate to gzip and noticed a significant increase in cpu load on our servers.

推荐答案

您是否可能遇到缓存未命中?也就是说,压缩内容有时被高速缓存压缩,但是切换压缩方案会(或者至少应该)使该高速缓存无效,从而导致cpu利用率显着增加。你尝试过它吗?

Is it possible that you are experiencing cache miss? That is, compressed content is sometimes cached compressed but switching compression schemes would (or at least should) invalidate that cache causing dramatically increased cpu utilization. Did you try switching it back?

这篇关于为http压缩选择gzip over deflate是否有任何性能损失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆