Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

RPC server: investigate whether some RPC calls could benefit as blocking a.k.a tokio::spawn_blocking #11401

Open
@niklasad1

Description

@niklasad1

jsonrpsee supports three different types on calls sync, async and blocking

The methods has just been ported how they were defined via https://github.com/paritytech/jsonrpc so just sync or async but some RPC calls that are sync I/O such as reading DB might facilitate from using tokio::spawn_blocking instead of tokio::spawn which is used for the calls defined as async RPC calls.

See paritytech/jsonrpsee#486 for further information

Metadata

Metadata

Assignees

No one assigned

    Labels

    I9-optimisationAn enhancement to provide better overall performance in terms of time-to-completion for a task.Z3-substantialCan be fixed by an experienced coder with a working knowledge of the codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions