Commit Graph

130 Commits (36ae8611fe98977153387308311f7d38b67e39c8)

Author SHA1 Message Date
Erik Johnston fc1e534e41
Speed up updating state in large rooms (#15971) 1 year ago
Erik Johnston 67f9e5293e
Ensure a long state res does not starve CPU (#15960) 1 year ago
Eric Eastwood 703a8f9c67
Instrument `state` and `state_group` storage related things (tracing) (#15610) 2 years ago
David Robertson 3b0083c92a
Use immutabledict instead of frozendict (#15113) 2 years ago
Sean Quah d0c713cc85
Return read-only collections from `@cached` methods (#13755) 2 years ago
Shay 03bccd542b
Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2 years ago
David Robertson 4f4d690423
Allow `compute_state_after_events` to use partial state (#14676) 2 years ago
David Robertson b5b5f66084
Move `StateFilter` to `synapse.types` (#14668) 2 years ago
Mathieu Velten 75888c2b1f
Faster joins: do not wait for full state when creating events to send (#14403) 2 years ago
Shay a2cf66a94d
Prepatory work for batching events to send (#13487) 2 years ago
Sean Quah b73cbb8215
Avoid putting rejected events in room state (#13723) 2 years ago
Nick Mills-Barrett 42b11d5565
Remove cached wrap on `_get_joined_users_from_context` method (#13569) 2 years ago
David Robertson c406d50d2d
Rename `event_map` to `unpersisted_events` (#13603) 2 years ago
Nick Mills-Barrett 5e7847dc92
Cache user IDs instead of profile objects (#13573) 2 years ago
David Robertson 7a19995120
Correct a misnamed argument in state res v2 (#13467) 2 years ago
Sean Quah 224d792dd7
Refactor `_resolve_state_at_missing_prevs` to return an `EventContext` (#13404) 2 years ago
Sean Quah 335ebb21cc
Faster room joins: avoid blocking when pulling events with missing prevs (#13355) 2 years ago
Erik Johnston 13341dde5a
Don't hold onto full state in state cache (#13324) 2 years ago
Erik Johnston c6a05063ff
Don't pull out the full state when creating an event (#13281) 2 years ago
Erik Johnston 0731e0829c
Don't pull out the full state when storing state (#13274) 2 years ago
David Robertson 7281591f4c
Use state before join to determine if we `_should_perform_remote_join` (#13270) 2 years ago
Erik Johnston 7be954f59b
Fix a bug which could lead to incorrect state (#13278) 2 years ago
Richard van der Hoff fe15a865a5
Rip out auth-event reconciliation code (#12943) 2 years ago
Erik Johnston 0ca4172b5d
Don't pull out state in `compute_event_context` for unconflicted state (#13267) 2 years ago
Sean Quah 1391a76cd2
Faster room joins: fix race in recalculation of current room state (#13151) 2 years ago
Richard van der Hoff 8c2825276f
Skip waiting for full state for incoming events (#13144) 2 years ago
Richard van der Hoff 8ecf6be1e1
Move some event auth checks out to a different method (#13065) 2 years ago
David Robertson 941dc3db13
Track a histogram of state res durations (#13036) 2 years ago
Richard van der Hoff 0d9d36b15c Remove `room_version` param from `check_auth_rules_for_event` 2 years ago
David Robertson 97053c9406
Type annotations for `test_v2` (#12985) 2 years ago
Erik Johnston 44de53bb79
Reduce state pulled from DB due to sending typing and receipts over federation (#12964) 3 years ago
Erik Johnston e3163e2e11
Reduce the amount of state we pull from the DB (#12811) 3 years ago
Erik Johnston 1e453053cb
Rename storage classes (#12913) 3 years ago
Erik Johnston b83bc5fab5
Pull out less state when handling gaps mk2 (#12852) 3 years ago
Erik Johnston 4660d9fdcf
Fix up `state_store` naming (#12871) 3 years ago
Shay 19d79b6ebe
Refactor `resolve_state_groups_for_events` to not pull out full state when no state resolution happens. (#12775) 3 years ago
Dirk Klimpel 6edefef602
Add some type hints to datastore (#12717) 3 years ago
Erik Johnston c72d26c1e1
Refactor `EventContext` (#12689) 3 years ago
andrew do 01e625513a
remove constantly lib use and switch to enums. (#12624) 3 years ago
Sean Quah 800ba87cc8
Refactor and convert `Linearizer` to async (#12357) 3 years ago
Richard van der Hoff d56202b038
Fix type of `events` in `StateGroupStorage` and `StateHandler` (#12156) 3 years ago
Richard van der Hoff e2e1d90a5e
Faster joins: persist to database (#12012) 3 years ago
Richard van der Hoff e24ff8ebe3
Remove `HomeServer.get_datastore()` (#12031) 3 years ago
Richard van der Hoff 251b5567ec
Remove `log_function` and its uses (#11761) 3 years ago
Patrick Cloke 10a88ba91c
Use auto_attribs/native type hints for attrs classes. (#11692) 3 years ago
Patrick Cloke cbd82d0b2d
Convert all namedtuples to attrs. (#11665) 3 years ago
Olivier Wilkinson (reivilibre) 4dd9ea8f4f Revert "Revert accidental fast-forward merge from v1.49.0rc1" 3 years ago
Sean Quah 158d73ebdd Revert accidental fast-forward merge from v1.49.0rc1 3 years ago
Sean Quah ffd858aa68
Add type hints to `synapse/storage/databases/main/events_worker.py` (#11411) 3 years ago
Patrick Cloke c01bc5f43d
Add remaining type hints to `synapse.events`. (#11098) 3 years ago