Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 452
kitsune Avatar asked Oct 17 '08 07:10

kitsune


2 Answers

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?

like image 63
Hafthor Avatar answered Sep 30 '22 02:09

Hafthor


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?

like image 22
Gorpik Avatar answered Sep 30 '22 02:09

Gorpik