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

Improve rpc async threading #4

Draft
wants to merge 4 commits into
base: v1.18.22-helius
Choose a base branch
from

Conversation

jeffhelius
Copy link

Problem

  • Lengthy cpu intensive rpc calls would block other threads

Summary of Changes

  • Copied changes from alessandro's pr that had shown significant performance gains via solana-accounts-cluster-bench. Even though rpc calls are being made via invoke which is basically runtime.block_on(... spawn_blocking ...). There were still demonstrable performance gains.

    Made the following rpc calls async / spawn_blocking.
    getMultipleAccounts
    getProgramAccounts
    getAccountInfo
    getTokenAccountsByDelegate
    getTokenAccountsByOwner
    getSignaturesForAddress
    getBlock
    getInflationReward
    getBlockTime

Fixes #

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