element-hq / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://element-hq.github.io/synapse
GNU Affero General Public License v3.0
1.61k stars 203 forks source link

Speed up sliding sync by computing extensions in parallel #17884

Closed erikjohnston closed 3 weeks ago

erikjohnston commented 4 weeks ago

The main change here is to add a helper function gather_optional_coroutines, which works in a similar way as yieldable_gather_results but takes a set of coroutines rather than a function