High Performance with PHP
January 15th, 2009
Preface
This article isn’t oriented a fresh man. so if you want to ask something about how to, please search before your ask.
- Compile your php code into opcode
Zend Optimizer, eAccelerator, APC, XCache - Using shared memory to boost your application
You may use those extensions that i mentioned above, but i think memcache is more better. If you’re going to build a large application, memcache is necessary. - Using apc / hidef instead of define statement
Many people may ignore this… yes, this is a small optimization. I just listed it here if you have many constant defined. - Using xdebug to profiling your application
In many case, the application’s choke point is not in database but application’s logic. So you could turn on xdebug’s profilling, then use CacheGrind to view the output to see where the problem is.
Recent Comments