Skip to content
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

Load receipts for room before acquiring lock #213

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

ulyssa
Copy link
Owner

@ulyssa ulyssa commented Mar 7, 2024

In #205 I added a Need::MESSAGES for every room at startup, which locks up the UI for the first several seconds when there are enough joined rooms. This adds an upper limit on how many load plans we execute in parallel at a time, and moves the receipt loading for a room to be outside of the load_insert function. This reduces the demand on the lock enough that the UI remains responsive.

@ulyssa ulyssa enabled auto-merge (squash) March 7, 2024 07:41
@ulyssa ulyssa merged commit ec81b72 into main Mar 7, 2024
4 checks passed
@ulyssa ulyssa deleted the receipts-before-lock branch March 7, 2024 07:49
@ulyssa ulyssa added this to the v0.0.9 milestone Mar 29, 2024
@ulyssa ulyssa mentioned this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant