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

Sequence v2: Faster local tracker and cache #380

Merged
merged 3 commits into from
Jun 28, 2023
Merged

Conversation

Agusx1211
Copy link
Member

Improves performance of local instance of sequence-sessions:

  • Add ram cache for imageHash -> config
  • Add ram cache for payload
  • Remove local ram cache for configs on loadPresignedConfiguration (no longer needed)
  • Sort checkpoints before validating signatures (that way we can get faster to the best one)
  • Skip encoding if no signatures are found for the payload
  • Skip checkpoint check if main tracker and cache already match

There is room for improvement, loadPresignedConfiguration could avoid recursion (opening room for new optimizations) and IndexedDB can also use bulk operations (or we could copy everything into memory).

@Agusx1211 Agusx1211 changed the title V2 faster local 2 Sequence v2: Faster local tracker and cache Jun 27, 2023
@Agusx1211 Agusx1211 merged commit 78e71ef into v2 Jun 28, 2023
23 checks passed
@Agusx1211 Agusx1211 deleted the v2-faster-local-2 branch June 28, 2023 16:42
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