Skip to content

Conversation

@ToufeeqP
Copy link
Contributor

Pull Request type

Please add the labels corresponding to the type of changes your PR introduces:

  • Feature
  • Refactor

Description

Constructing the evaluation grid and polynomial grid is one of the most resource-intensive operations in Kate RPCs. This PR introduces caching for both grids, which optimizes performance for kate_queryProof and kate_queryRows. The cache sizes for these grids can be configured using the CLI options --kate-eval-grid-size and --kate-poly-grid-size.

TODO

Since the implementation of kate_queryProof and kate_queryRows RPCs has been moved to the client, the runtime APIs currently used by these RPCs should be removed in an upcoming RTU once all nodes have upgraded to binaries containing this version or later.

Checklist

  • I have performed a self-review of my own code.
  • The tests pass successfully with cargo test.
  • The code was formatted with cargo fmt.
  • The code compiles with no new warnings with cargo build --release and cargo build --release --features runtime-benchmarks.
  • The code has no new warnings when using cargo clippy.
  • If this change affects documented features or needs new documentation, I have created a PR with a documentation update.

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.

2 participants