Load Times
Posted: Wed Aug 18, 2004 1:03 am
I have been working on a large-scale corporate intranet product using 100% pure PHP5 OOP. So far it has been the most pleasant coding experience I have had in a while. Everything that PHP5 provides makes my code more elegant and my life much easier.
So far, the speeds that I have seen from the program have been quite good. However, one of the things that I'm surprised to have found is that it takes longer for the script to parse the include files than it does to actually instantiate and use the objects defined in those files!
I don't recall in PHP4 whether I actually experienced this. I know that there are products which exist to do caching, such as Zend Accelerator, ionCube PHP Accelerator, APC, AfterBurner, etc. which help eliminate the need for script compilation upon each request. Unfortunately, I don't believe that these accelerators work with PHP5.
So I am wondering if there are any other tools I can use or tips I can try in order to help speed up the parsing time for my code. I know that a lot of times this just depends on CPU speed and memory, so please don't tell me to buy more memory or get a faster CPU
The program is running on a dual 3GHz CPU w/ 1GB ram.
So far, the speeds that I have seen from the program have been quite good. However, one of the things that I'm surprised to have found is that it takes longer for the script to parse the include files than it does to actually instantiate and use the objects defined in those files!
I don't recall in PHP4 whether I actually experienced this. I know that there are products which exist to do caching, such as Zend Accelerator, ionCube PHP Accelerator, APC, AfterBurner, etc. which help eliminate the need for script compilation upon each request. Unfortunately, I don't believe that these accelerators work with PHP5.
So I am wondering if there are any other tools I can use or tips I can try in order to help speed up the parsing time for my code. I know that a lot of times this just depends on CPU speed and memory, so please don't tell me to buy more memory or get a faster CPU