Is there any performance hit involved in choosing gzip over deflate for http compression?

余生颓废 提交于 2019-12-29 08:26:08

问题


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


回答1:


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?




回答2:


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?



来源:https://stackoverflow.com/questions/211284/is-there-any-performance-hit-involved-in-choosing-gzip-over-deflate-for-http-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!