Is there any performance hit involved in choosing

2019-01-27 13:49发布

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

2条回答
神经病院院长
2楼-- · 2019-01-27 14:16

gzip is, basically, deflate with some additional headers. So there should not be a significant performance hit. Now, maybe your deflate tool is just more efficient than your gzip tool. Are you using the same tool for both compressions or two different ones?

查看更多
Root(大扎)
3楼-- · 2019-01-27 14:30

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?

查看更多
登录 后发表回答