3 ms·
if it's the simple stuff like variable substitution and simple loops, php is actually not too bad IMO. When you start doing database and http calls then your pe
by tjpick 16y ago
if it's the simple stuff like variable substitution and simple loops, php is actually not too bad IMO. When you start doing database and http calls then your performance gets a lot worse.
A static page is obviously going to be faster though.
- rumpelstiltskin 16y agoHow much worse? 5 times? 10 times? Let's say it's a wordpress blog.
- tjpick 16y agohow long is a piece of string? It depends on the time that your database query or http call takes, and how much data you are returning, and how much processing you have to do on it. A well written query or call won't have too much of a negative impact, maybe making the page two times slower than a static. A poorly written query strategy could make a page a thousand times slower. xdebug and timing code are helpful.