Opened 9 years ago
Closed 9 years ago
#7208 closed defect (bug) (fixed)
`bp_get_user_groups()` performance issues
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.7 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Groups | Keywords: | |
| Cc: |
Description
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.
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 10977: