Skip to content

Commit

Permalink
Increase RPC-CORE default capacity (#6016)
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul authored Nov 5, 2024
1 parent cecd433 commit 17fa8fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rpc-core/src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class RpcCore {

// these are the base keys (i.e. part of jsonrpc)
this.sections.push(...sectionNames);
this.#storageCache = new LRUCache(DEFAULT_CAPACITY);
this.#storageCache = new LRUCache(DEFAULT_CAPACITY * 10 * 10);
// decorate all interfaces, defined and user on this instance
this.addUserInterfaces(userRpc);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/rpc-provider/src/lru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// cache space (depending on the historic queries this would vary, metadata
// for Kusama/Polkadot/Substrate falls between 600-750K, 2x for estimate)

export const DEFAULT_CAPACITY = 64;
export const DEFAULT_CAPACITY = 1024;

class LRUNode {
readonly key: string;
Expand Down

0 comments on commit 17fa8fa

Please sign in to comment.