Home > PHP, Web Development > High Performance with PHP

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. :)

  1. Compile your php code into opcode
    Zend Optimizer, eAccelerator, APC, XCache
  2. 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.
  3. 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.
  4. 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.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live

PHP, Web Development , , ,

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.