homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Comp/Uncompress str's

 7:49 pm on Nov 12, 2004 (gmt 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?




 8:56 pm on Nov 12, 2004 (gmt 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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved