Re: Need a tool to minimize HTML before storing in memecache
| From: | Marco Behnke | Date: | Fri, 03 May 2013 19:56:16 +0000 |
| Subject: | Re: Need a tool to minimize HTML before storing in memecache | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321005@lists.php.net to get a copy of this message | ||
Am 03.05.2013 21:34, schrieb Daevid Vincent:
Attachment: [application/pkcs7-signature] S/MIME Kryptografische Unterschrift smime.p7s
There are many comparisions all around the web and we did a benchmark for ourselves when we evaluated what the fastest solution is. Memcache is slower than APC. It gets worse when you start communicating over the network with memcache.-----Original Message----- From: Marco Behnke [mailto:marco@behnke.biz] Sent: Friday, May 03, 2013 12:01 PM To: Daevid Vincent; php >> "php-general@lists.php.net" Subject: Re: [PHP] Need a tool to minimize HTML before storing in memecache If you really have that much traffic, then memcache isn't your answer to caching. It is as slow as a fast database.That's not entirely true.
Maybe it is the best solution to think about optimizations you want and code them by hand like stripping comments, too much whitespace, empty tags, linebreaks and whatever. I guess it will save a lot of time. Or you download the tidy sourcecode and put in your wanted changes? Maybe suggest a change request or submit a patch?If you want to go with tidy and surf around the php issues you could optimize the single html parts, before glueing everything together.That would require much more work than simply getting < and > to work. And honestly I've been hacking around Tidy so much at this point with regex to minify the output, that I'm even wondering if Tidy is worth the both anymore. Not sure what else it will give me.
Don't know if this is an answer to my question? You know what google page speed is about?Maybe google page speed is worth a look for you too?We have over 1,000 servers in house and also distributed across nodes in various cities and countries.
Attachment: [application/pkcs7-signature] S/MIME Kryptografische Unterschrift smime.p7s