Output Compression

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Rade

Output Compression

Post by Rade »

Hi there,
I just asked myself, if there is some gzip compression support built into serendipity. Could't find one. Couldn't find any hints in the forum either.
Is there any reason for this or is it just that development has not gone that far yet?

I think it would be reasonable, seeing the large amount of redundancy of certain keywords like"serendipity" or "class" and the many whitespaces in the generated HTML-source. Either that or strip the output off the whitespaces and replace "serendipity" through "sd" or something.
Of course, low traffic nowadays is not so important as it used to be, but still it is a kind of waste of resources, I think :)

Any comment?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Output Compression

Post by garvinhicking »

gzip compression is available in our upcoming 0.8 Serendipity release. The snapshot is already quite stable if you like to try it out.

However using compression is always a risky thing to do - it can take up more CPU cycles than it takes to emit the uncompressed HTML. So only turn it on if your processor can handle it. I usually turn it off if the bandwidth of my server is high enough, just because of performance reasons.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply