|
|
|
| |
Welcome
Time Now: Sat Jul 31, 2010 1:25 am
All times are GMT
|
|
|
|
|
|
|
|
|
|
| |
SEO 1 Forums
>
Webmastering >
PHP for Speed optimization
nagesh
New Member
Joined: 26 Aug 2009
Good Posts: 6
|
| PHP for Speed optimization |
|
|
As with many scripting languages, PHP scripts are normally kept as human-readable source code, even on production web servers. In this case, PHP scripts will be compiled at runtime by the PHP engine, which increases their execution speed. PHP scripts are able to be compiled before runtime using PHP compilers as with other programming languages such as C (the language PHP and its extensions are written in).
Code optimizers aim to reduce the computational complexity of the compiled code by reducing its size and making other changes that can reduce the execution time with the overall goal of improving performance. The nature of the PHP compiler is such that there are often opportunities for code optimization, and an example of a code optimizer is the Zend Optimizer PHP extension.
Another approach for reducing overhead for high load PHP servers is using PHP accelerators. These can offer significant performance gains by caching the compiled form of a PHP script in shared memory to avoid the overhead of parsing and compiling the code every time the script runs. A PHP accelerator will be built into PHP 6. |
Sat Sep 05, 2009 7:57 am |
|
|
|
|
|
|
|
|
|