Refactor embed module so all channel related sends are async #21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
During testing it appears that the majority of latency incurred by the embeds module when sending URL preview responses is actually being caused by a blocking call to
room.send()
inside the matrix-sdk API, this call sometimes takes a long time to complete (over 2 seconds in many cases) and it appears to be the largest bottleneck in improving performance and responsiveness for this code.We should refactor the embed module so all async requests are awaited concurrently, including
room.send()
, so they won't block the hot-loop code used to send through URL embeds in response to user's messages. This should significantly improve performance (especially around latency with multiple links).