Welcome to WebmasterWorld Guest from 54.161.227.32

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Comp/Uncompress str's

     
7:49 pm on Nov 12, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 2, 2003
posts:95
votes: 0


I've been making cashes of a number of web pages and compressing them via gzcompress($str, LEVEL OF COMPRESSION).

I've set level of compression to 9, MAX. I know that this requires more computing resources BUT, when I use gzuncompress($str) does it require more CPU usage than if I was uncompressing a string with a lower level of compression?

Regards

8:56 pm on Nov 12, 2004 (gmt 0)

New User

10+ Year Member

joined:Feb 25, 2004
posts:14
votes: 0


You should take a string you want to compress and see what difference there is between 1 and 9 levels (I can tell you...not so much). Level 9 compression is just not worth the cpu power, specially if you get a lot of traffic.

P.S. Also I don't see why gzip compress your cached content. PHP can gzip all html content before sending it to client after which client decompresses it himself on the fly.

11:26 am on Nov 13, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 2, 2003
posts:95
votes: 0


The caching of content is of other websites news stories cached into a database i run. They are compressed to MASSIVELY reduce space required for data storage.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members