This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commits on Apr 25, 2022
-
we may as well just chain together the two inputs
Configuration menu - View commit details
-
Copy full SHA for cd4d26f - Browse repository at this point
Copy the full SHA cd4d26fView commit details -
Move some filtering and sorting logic earlier
We can potentially skip some expensive db work by moving this synchronous code earlier. The `sorted` might be expensive, but nowhere near as expensive as the db lookups.
Configuration menu - View commit details
-
Copy full SHA for 9a68a56 - Browse repository at this point
Copy the full SHA 9a68a56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8843069 - Browse repository at this point
Copy the full SHA 8843069View commit details -
Use lists of tuples instead of Dicts
Both of these queries `GROUP BY b.event_id`, so there's no deduplication being done, and the dict has no value for us.
Configuration menu - View commit details
-
Copy full SHA for 8feaece - Browse repository at this point
Copy the full SHA 8feaeceView commit details -
Configuration menu - View commit details
-
Copy full SHA for b945de6 - Browse repository at this point
Copy the full SHA b945de6View commit details -
Bail out when we find a visible extremity
Rather than checking all of the backwards extremities (which may be legion), we check one at a time and bail out as soon as we find a visible one
Configuration menu - View commit details
-
Copy full SHA for a1bd48f - Browse repository at this point
Copy the full SHA a1bd48fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb88081 - Browse repository at this point
Copy the full SHA cb88081View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f0a63e - Browse repository at this point
Copy the full SHA 1f0a63eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d285af2 - Browse repository at this point
Copy the full SHA d285af2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ac692f - Browse repository at this point
Copy the full SHA 4ac692fView commit details -
Make
get_successor_events
take a single event... since all its callers now only pass a single event
Configuration menu - View commit details
-
Copy full SHA for bdfa5a7 - Browse repository at this point
Copy the full SHA bdfa5a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a23e5a1 - Browse repository at this point
Copy the full SHA a23e5a1View commit details -
Update synapse/handlers/federation.py
Co-authored-by: David Robertson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 881d794 - Browse repository at this point
Copy the full SHA 881d794View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8487963 - Browse repository at this point
Copy the full SHA 8487963View commit details -
It's impossible for us to have duplicates here, so we may as well use a boring list.
Configuration menu - View commit details
-
Copy full SHA for b75b3f5 - Browse repository at this point
Copy the full SHA b75b3f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dfe084 - Browse repository at this point
Copy the full SHA 1dfe084View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.