[buddypress-trac] [BuddyPress Trac] #7208: `bp_get_user_groups()` performance issues

buddypress-trac noreply at wordpress.org
Mon Aug 1 20:26:53 UTC 2016


#7208: `bp_get_user_groups()` performance issues
--------------------------+------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.7
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by boonebgorges):

 In [changeset:"10978"]:
 {{{
 #!CommitTicketReference repository="" revision="10978"
 Reduce the number of loops in `bp_get_user_groups()`.

 By applying `$filters` before adding to the found `$groups` array, we
 eliminate one loop through the list of groups, and also eliminate a
 costly call to `wp_list_filter()`.

 See #7208.
 }}}

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


More information about the buddypress-trac mailing list