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

Add ClientInitStatus flag for isHighPriorityDataLoaded #1318

Closed
wants to merge 7 commits into from

Conversation

texuf
Copy link
Contributor

@texuf texuf commented Oct 21, 2024

so that we can render data faster

If we disable signature validations during unpacking, we want to be able to verify them later, so we need to save off this data.
…ions in sync

I don’t know if this caused any actual issues, but I’m going to be modifying this structure and it seems weird that we didn’t preserve the sort here.
I have more and larger refactors coming, but this seemed useful to call out
participants includes left users, and instantiates a new set every time with joined, invited, and left users. And it is called inside a pretty hot loop.
I will optimize the hot loop in an upcoming pr
If we signature validation was disabled, run signature validation before sharing keys
… storage

when scrolling backwards, we don’t care about any “state” events that have already been snapshotted, so don’t write them. we really only care about channel messages so that we don’t have to refetch them
create targeted loop that does all work on high priority streams first (previously we were prioritizing decryption, but key solicitation was just whatever came first

optimize initialization and adding key solicitations. this is a really hot loop for large towns and these small changes help us out with cpu utilization
@texuf
Copy link
Contributor Author

texuf commented Oct 21, 2024

moved to #1319

@texuf texuf closed this Oct 21, 2024
@texuf texuf deleted the austin.ellis/k5 branch October 21, 2024 23:09
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