It appears to be failing to rate limit updates to the member list, so is sorting all the members once for every room member event that's emitted.