[buddypress-trac] [BuddyPress] #2985: Performance Tune Loops by Removing Functions from Their Declarations

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Jan 10 11:27:31 UTC 2011


#2985: Performance Tune Loops by Removing Functions from Their Declarations
-------------------------+-------------------------------------------------
  Reporter:  jeffsayre   |      Owner:
      Type:              |     Status:  new
  enhancement            |  Milestone:  Awaiting Review
  Priority:  normal      |    Version:  1.3
 Component:  Core        |   Keywords:  performance, has-patch, needs-
Resolution:              |  testing
-------------------------+-------------------------------------------------

Comment (by kunalb):

 I believe that PHP caches the length of the array in PHP so it doesn't go
 over the array every time. However, there will some overhead in calling
 the function again and again, so it'll save some, though not that much,
 time per execution.

 See this: http://www.tuxradar.com/practicalphp/18/1/7

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2985#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list