Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Don't pull out the full state when calculating push actions #13078

Merged
merged 56 commits into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
9f3afd2
Don't pull out stuff for push
erikjohnston May 20, 2022
fe6175a
Reduce state that push rules pull from DB
erikjohnston May 10, 2022
24c3974
Ignore display name push
erikjohnston May 20, 2022
944f627
fetch display name
H-Shay Jun 8, 2022
05005c4
filter visibility of push event
H-Shay Jun 13, 2022
c16260e
add filter_events_for_client_with_context and move _check_visibility …
H-Shay Jun 13, 2022
8260c30
Merge branch 'develop' into erikj/less_push_state
H-Shay Jun 13, 2022
d1378f5
refactor `filter_events_for_client` to use _check_visibility
H-Shay Jun 15, 2022
6c83781
fix typo in cache.py
H-Shay Jun 15, 2022
fb0a78c
Don't pull out stuff for push
erikjohnston May 20, 2022
83ff92d
Reduce state that push rules pull from DB
erikjohnston May 10, 2022
4966b03
Fetch display names from DB.
erikjohnston May 20, 2022
21951c3
filter visibility of push event
H-Shay Jun 13, 2022
f7ace02
Newsfile
erikjohnston Jun 16, 2022
d186237
Merge branch 'erikj/less_push_state' of https://github.com/matrix-org…
H-Shay Jun 29, 2022
4a0836e
remove rulesforroom and use room-specific profiles
H-Shay Jul 2, 2022
6f9dd6f
alter _get_users_in_room_with_profiles to take an optional list of us…
H-Shay Jul 2, 2022
696dc02
remove .invalidate
H-Shay Jul 5, 2022
caf6222
add docstrings
H-Shay Jul 5, 2022
39dfbf4
use @cached instead of lrucache
H-Shay Jul 5, 2022
9f770f5
move visibility check out of loop
H-Shay Jul 5, 2022
3f8a515
add soft-fail check
H-Shay Jul 5, 2022
df1105d
lint
H-Shay Jul 6, 2022
0452aef
separate out functions and add caches
H-Shay Jul 7, 2022
0d9282d
ditch cache on get_rules
H-Shay Jul 7, 2022
d318c2f
build list of user member events rather than pull all membership out …
H-Shay Jul 7, 2022
6f74c51
Invalidate cache
erikjohnston Jul 8, 2022
a1274bf
Rewrap comments
erikjohnston Jul 8, 2022
3a29f86
Batch fetch events
erikjohnston Jul 8, 2022
e781149
Split out 'allowed' check in visibility
erikjohnston Jul 8, 2022
1760a40
Split out _check_filter_send_to_client
erikjohnston Jul 8, 2022
b470cab
Split out _check_membership
erikjohnston Jul 8, 2022
d5bc155
Add filter_event_for_clients_with_state
erikjohnston Jul 8, 2022
3f908a8
Newfile
erikjohnston Jul 8, 2022
9989062
Merge branch 'erikj/visibility_multiple_users' into erikj/less_push_s…
erikjohnston Jul 8, 2022
99ce011
Fix newsfile
erikjohnston Jul 8, 2022
f562735
Fix erased senders
erikjohnston Jul 8, 2022
3d0fdc4
Review comments
erikjohnston Jul 8, 2022
9f5ed75
Use typed return values
erikjohnston Jul 8, 2022
4419b58
Fix erased senders mk2
erikjohnston Jul 8, 2022
43e2133
Fix admin cmd
erikjohnston Jul 8, 2022
0b59e93
Add slots
erikjohnston Jul 11, 2022
c30ee0e
Merge branch 'erikj/visibility_multiple_users' into erikj/less_push_s…
erikjohnston Jul 11, 2022
18e818c
Merge branch 'develop' into erikj/less_push_state
erikjohnston Jul 11, 2022
d370472
Fix invalidation
erikjohnston Jul 11, 2022
94c5419
Rewrap lines
erikjohnston Jul 11, 2022
ebf01b9
Use Collection
erikjohnston Jul 11, 2022
47cfc15
Update docstring
erikjohnston Jul 11, 2022
615d053
Remove pointless inclusion of join event
erikjohnston Jul 11, 2022
1e26f18
Merge get_rules functions
erikjohnston Jul 11, 2022
763dd3b
Remove pointless copy
erikjohnston Jul 11, 2022
858ebe8
Fix logging
erikjohnston Jul 11, 2022
fadc16a
Add note about efficiency
erikjohnston Jul 11, 2022
f9be434
Mark `get_local_users_in_room` as iterable cache
erikjohnston Jul 11, 2022
9c4e507
Merge remote-tracking branch 'origin/develop' into erikj/less_push_state
erikjohnston Jul 11, 2022
6429b27
Up the query counts in tests
erikjohnston Jul 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/13078.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reduce memory consumption when processing incoming events in large rooms.
2 changes: 1 addition & 1 deletion changelog.d/13222.misc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Improve memory usage of calculating push actions for events in large rooms.
Reduce memory consumption when processing incoming events in large rooms.
Loading