Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4089 from esl/no-extra-get-session-call-for-prese…
…nces Avoid calling ejabberd_sm_backend:get_sessions/3 second time when routing presences Old code calls get_session_pid for each presence. Again. We could avoid it. Proposed changes include: Introduce get_user_present_resources_and_pids, call it in do_route_no_resource function Why: Slightly faster, because CETS does not need lookup and call tuple_to_session function again We do a lot of presences (could be 80% of traffic), so an optimisation matters
- Loading branch information