-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow call to olmMachine.getRoomSettings()
#4337
Comments
The relevant method for EW should live in the indexedDB crate: matrix-rust-sdk/crates/matrix-sdk-indexeddb/src/crypto_store/mod.rs Lines 1317 to 1327 in 3e7d7e8
Nothing really jumps out, looks like a simple key/value get operation. |
No objections here, though I don't have any particular guidance on how to improve the situation. |
This was referenced Dec 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A bit of context first: we are migrating from the legacy crypto stack to rust crypto stack. In EW, we need to know if the room is encrypted to display it. This assertion is a part of the critical path of EW.
To know if the room is encrypted, we look at the room settings thanks to
olmMachine.getRoomSettings()
.We have spot a performance issue when trying to get this value from less than 1sec to multiple secs to respond.
The text was updated successfully, but these errors were encountered: