You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cameronvoell
changed the title
Bug: dm creation and group creation take 500 milliseconds on Dev
Bug: dm creation and group creation take ~500 milliseconds on Dev
Feb 25, 2025
Right now the main low hanging fruit I can look at that we seem to be calling get_installation_diff twice, once when constructing the intente for adding the other user to the DM, and then immediately after when publishing the intent. But otherwise no smoking guns here as the time seems evenly distrubuted across 6 discrete actions that are ~70-80ms each:
Function
Related Network Call
load_identity_updates
get_identity_updates_v2
calculate_membership_changes_with_keypackages
get_key_packages_for_installation_ids
(publish_intents) get_publish_intent_data
get_key_packages_for_installation_ids
(publish_intents) send_group_messages
send_group_messages
receive
query_group_messages
post_commit
send_welcome_messages
Next step is to try and remove the extra get_key_packages_for_installation_ids, potentially by implementing a cache for fetching keypackages for installation keys, and then zoom out to see if there is anything else redundant that is occurring.
Describe the bug
See re-creation here: #1656
Expected behavior
No response
Steps to reproduce the bug
No response
The text was updated successfully, but these errors were encountered: