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

Commit

Permalink
Make push rules use proper structures. (#13522)
Browse files Browse the repository at this point in the history
This improves load times for push rules:

| Version              | Time per user | Time for 1k users | 
| -------------------- | ------------- | ----------------- |
| Before               |       138 µs  |             138ms |
| Now (with custom)    |       2.11 µs |            2.11ms |
| Now (without custom) |       49.7 ns |           0.05 ms |

This therefore has a large impact on send times for rooms
with large numbers of local users in the room.
  • Loading branch information
erikjohnston committed Aug 16, 2022
1 parent d642ce4 commit 5442891
Show file tree
Hide file tree
Showing 8 changed files with 494 additions and 333 deletions.
1 change: 1 addition & 0 deletions changelog.d/13522.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve performance of sending messages in rooms with thousands of local users.
Loading

0 comments on commit 5442891

Please sign in to comment.