Page 1 of 1

Output Compression

Posted: Sun Jan 16, 2005 5:34 pm
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?

Re: Output Compression

Posted: Mon Jan 17, 2005 9:32 am
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