Skip to content

Adds env var support for setting cache size #174

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

Merged
merged 5 commits into from
Aug 8, 2025

Conversation

thewhaleking
Copy link
Collaborator

Adds two env vars:

  • SUBSTRATE_CACHE_METHOD_SIZE (default 512)
  • SUBSTRATE_RUNTIME_CACHE_SIZE (default 16)

For setting the two cached method sizes used in AsyncSubstrateInterface and SubstrateInterface

@thewhaleking thewhaleking marked this pull request as ready for review August 8, 2025 11:27
@thewhaleking thewhaleking requested a review from a team August 8, 2025 11:27
@thewhaleking thewhaleking added run-bittensor-sdk-tests Runs Bittensor SDK tests. run-bittensor-cli-tests Runs BTCLI tests. labels Aug 8, 2025
@basfroman
Copy link
Contributor

@MichaelTrestman @chideraao please add the variables mentioned in the description to the documentation.
@thewhaleking also, it would be good to have list of ASI related local environment variables list in the README file.

@basfroman basfroman merged commit 028a1a1 into staging Aug 8, 2025
110 of 111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-bittensor-cli-tests Runs BTCLI tests. run-bittensor-sdk-tests Runs Bittensor SDK tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants