Loading ...
Sorry, an error occurred while loading the content.

Optimizing PHP objects

Expand Messages
  • Vinu Thomas
    Justin Silverton has some tips over at his blog on how to improve performance of OO PHP code. The following tips can help in optimizing object-orientated
    Message 1 of 1 , Jul 26, 2006
    • 0 Attachment
      Justin Silverton has some tips over at his blog on how to improve
      performance of OO PHP code.

      "The following tips can help in optimizing object-orientated PHP.

      1. Initialise all variables before use.
      2. Dereference all global/property variables that are frequently used in
      a method and put the values in local variables if you plan to access the
      value more than twice.
      3. Try placing frequently used methods in the derived classes."

      More optimization tips over at : Jaslabs ยป Optimizing PHP objects
      <http://www.whenpenguinsattack.com/2006/07/21/optimizing-object-oriented\
      -php/>



      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.