[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 13:39:55 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 jeffsayre):

 cnorris23 -

 Thanks for your efforts. Did you upload your patch? There are no files
 currently attached.

 kunalb -

 That is correct. For a small site, it will offer little difference, but
 for a very large site with tens of thousands + of members--which we should
 assume some BuddyPress installs will have--it can make a noticeable
 difference. Seconds of difference are a big deal when you have a large
 network. This is by no means an issue with the vast majority of installs.

 Remember that the amount of members a site has does not equal the number
 of loop iterations. It all depends on the complexity of a given array and
 the elements being iterated. Since many BuddyPress arrays are very
 complex, multi-nested structures, any fraction of time that can be shaved
 will improve the overall performance, and that is the goal here.

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


More information about the buddypress-trac mailing list