synapse-0001: sync handler newly_joined_rooms List membership O(J*N); matrix-js-sdk CLEAN

synapse/handlers/sync.py _get_rooms_changed: newly_joined_rooms is List[str]
checked with `in` inside for-loop over all joined rooms (line 2252).
O(J*N) where J=joined rooms, N=newly joined. Fix: use Set. 99x at J=5000.
This commit is contained in:
russell@unturf.com 2026-03-30 15:23:53 -04:00
parent 7d89e30de9
commit 15db2a0269
5 changed files with 181 additions and 1 deletions

View file

@ -859,5 +859,9 @@
"proxysql-0001": "UNDF-2026-000000858",
"conduit-0001": "UNDF-2026-000000859",
"element-web-0003": "UNDF-2026-000000860",
"element-web-0004": "UNDF-2026-000000861"
"element-web-0004": "UNDF-2026-000000861",
"erpnext-0001-0001": "UNDF-2026-000000862",
"erpnext-0002-0002": "UNDF-2026-000000863",
"ofbiz-0001-0001": "UNDF-2026-000000864",
"ofbiz-0002-0002": "UNDF-2026-000000865"
}