Skip to content

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
@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