Speeding up PHP
Collapse
X
-
Tags: None
-
I couldn't possibly know what I'm talking about, I'm completely, absolutely and definitively out of my fucking mind. -
I am using it on my website which is 100% PHP & mysql. It helped A LOT bringing down my server's load. Very easy to install, no negative side effects ... and it's free too :-))Comment
-
IMHO dont bother with them. They will give you a 3-5% increase in speed, but thats about it. It doesn't make for a very scalable system. Look at which part of the script is slow and improve it.
Using a cacher or optimiser is sort of 'cheating' and is only a short term solution.lol internet.Comment
-
Originally posted by kad
IMHO dont bother with them. They will give you a 3-5% increase in speed, but thats about it. It doesn't make for a very scalable system. Look at which part of the script is slow and improve it.
Using a cacher or optimiser is sort of 'cheating' and is only a short term solution.
Sorry,
but this is absolutely not true.
I don't know how many hits you have but if you have a lot you will see a significant increase. I am running 500,000 database intense hits per day on one machine with php accelerator and no worries at a load of 0.2 - 0.4 .. ( 1 gig of ram and dual 1ghz cpu) ..
You can significantly speed up your sites if you use the new Smarty template engine http://smarty.php.net in combination with php accelerator.
Plus, use the caching function of Mysql 4.x and you save a lot of money as you don't need additional hardware to scale your traffic.
How do you define 'cheating' in relation to a cacher?
Greetings
MikeComment
-
Let me preface my comments by stating that I designed and co-wrote http://www.darkblue.com. This system serves out more than 100 million impressions a day (and counts them ofcourse), as well as tracking clicks, leads and sales. It reports statistics to both advertisers and its thousands of affiliates in real time.Originally posted by Trafficbrokercom
Sorry,
but this is absolutely not true.
I don't know how many hits you have but if you have a lot you will see a significant increase. I am running 500,000 database intense hits per day on one machine with php accelerator and no worries at a load of 0.2 - 0.4 .. ( 1 gig of ram and dual 1ghz cpu) ..
You can significantly speed up your sites if you use the new Smarty template engine http://smarty.php.net in combination with php accelerator.
Plus, use the caching function of Mysql 4.x and you save a lot of money as you don't need additional hardware to scale your traffic.
How do you define 'cheating' in relation to a cacher?
Greetings
Mike
It uses PHP 4 and MySQL without ANY middleware caching. It does use one C program, but that is only due to PHP's poor memory management when handling large volumes of data.
PHPA only does one thing, and that is stores a cached copy of the php script in memory, so that each time it is called, it doesnt need to recompile it again. This is a good feature to have around, but belive me, 95% of the time, waiting for PHP to compile the script is the least of peoples worries. Most of the time (depending on hardware) it takes the OS longer to seek the file and read it than it does PHP to compile it.
That said, please dont mis-interpret what im saying about 'cheating'. Im saying putting PHPA on when the box starts maxing out is the EASY way out. Fuck timing your scripts to see where the slow down is, lets just install PHPA and forget about it.
PHP in most cases is ultra fast. It is only slow when you do dumb things. Most of these things aren't even PHP's fault (reading and writing to files / large databases). If your box is running at a high load, putting Zend Optimizer or PHPA on it should be the last thing you do.
As with everything, this is just my take on things. I want my code to be uber-fast on everybox that has PHP.
lol internet.Comment
-
i'm no expert but i use it and seems ok, there's also zend optimizer which may be worth looking at, you can't install both though. And mod_gzip is worth installing too.Comment



Comment