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 threading via async wrapper and spawn_blocking #35651

Closed

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 #

Copy link
Collaborator

@anza-team anza-team left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution! This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave

@anza-team anza-team closed this Sep 6, 2024
@mergify mergify bot added community Community contribution need:merge-assist labels Sep 6, 2024
@jeffhelius jeffhelius deleted the improve-rpc-threading branch September 6, 2024 19:46
@jeffhelius jeffhelius restored the improve-rpc-threading branch September 6, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants