Skip to content

feat(rust-client): run independent sync_state gRPC calls concurrently - #2420

Open
ricomateo wants to merge 6 commits into
nextfrom
ricomateo-sync-state-concurrent-rpc-calls
Open

feat(rust-client): run independent sync_state gRPC calls concurrently#2420
ricomateo wants to merge 6 commits into
nextfrom
ricomateo-sync-state-concurrent-rpc-calls

Conversation

@ricomateo

@ricomateo ricomateo commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Partially addresses #2361

Introduces the following changes to these sync_state functions:

  • fetch_sync_data: sync_notes_with_content and sync_transactions now run concurrently instead of one after the other.
  • account_state_sync: the get_account requests behind sync_public_accounts and verify_private_account_mismatch are issued in parallel, up to four in flight, instead of one at a time.

Benchmarks against devnet with 4 tracked accounts show the sync completing about 21% faster than on next. The benchmark exercised all the state_sync RPC calls.

Left as follow-up work: the issue suggested changing the NTL retrievals to make them run concurrently as well. This can be addressed in a follow-up PR.

@ricomateo
ricomateo marked this pull request as ready for review August 20, 2026 18:26
@ricomateo ricomateo changed the title feat(rust-client): run independent sync_state gRPC calls concurrently feat(rust-client): run independent sync_state gRPC calls concurrently Aug 20, 2026
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