When using g-zip compression in gzcompress() function, we can select the compression level. I know its a trade-off between speed & server usage and output filesize. The question is, is there a significant difference in the filesize between level 9 and level 1 when using g-zip for HTML files?
I've read a few tutorials on g-zip, but none mentioned about the difference in compression level besides 9 = maximum compression level and 0 = none.
G-zip, does compression level matter?
Moderator: General Moderators
-
Spaceman-Spiff
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 06, 2002 2:46 am
-
Spaceman-Spiff
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 06, 2002 2:46 am
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
-
Spaceman-Spiff
- Forum Newbie
- Posts: 8
- Joined: Wed Nov 06, 2002 2:46 am
i did a little test, if anyone interested:
File: mysql manual
Size: 2.5 MB
Type: html

conclusion: use default (level 5 or 6)
File: mysql manual
Size: 2.5 MB
Type: html

conclusion: use default (level 5 or 6)
Last edited by Spaceman-Spiff on Sat Aug 23, 2003 3:28 pm, edited 1 time in total.
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
hmm, pretty useful. thanx for that. although do remember that compression also is affected by the actual structure of the document, regardless of its size. sometimes the copression algoithim fits the contents nicely, other times not so nice. the differnece is almost negligable but i feel its needs pointing out next to a one time case study such as yours.