mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 16:10:20 +00:00
Start of idea to re-use work of getting state for a given state_group
This commit is contained in:
parent
4ee82c0576
commit
4676e53e65
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@ class StateGroupBackgroundUpdateStore(SQLBaseStore):
|
|||
groups: List[int],
|
||||
state_filter: Optional[StateFilter] = None,
|
||||
) -> Mapping[int, StateMap[str]]:
|
||||
"""
|
||||
We can sort from smallest to largest state_group and re-use the work from the
|
||||
small state_group for a larger one if we see that the edge chain links up.
|
||||
"""
|
||||
|
||||
state_filter = state_filter or StateFilter.all()
|
||||
|
||||
results: Dict[int, MutableStateMap[str]] = {group: {} for group in groups}
|
||||
|
|
Loading…
Reference in a new issue