[buddypress-trac] [BuddyPress Trac] #7208: `bp_get_user_groups()` performance issues
buddypress-trac
noreply at wordpress.org
Mon Aug 1 20:06:07 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 | Keywords:
--------------------------+-----------------
Working with `bp_get_user_groups()` on a site where a user is a member of
many hundreds of groups, I've noted some performance issues.
First: when looping through groups and casting keys to integer or boolean,
the key whitelist is being regenerated each time through the loop. This
only needs to be done once.
Second: `wp_list_filter()` is slow. I wonder if there's a way to filter
these items earlier.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7208>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list