This repository has been 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
Labels
I9-optimisation
An enhancement to provide better overall performance in terms of time-to-completion for a task.
Z3-substantial
Can be fixed by an experienced coder with a working knowledge of the codebase.
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 usingtokio::spawn_blocking
instead oftokio::spawn
which is used for the calls defined as async RPC calls.See paritytech/jsonrpsee#486 for further information
The text was updated successfully, but these errors were encountered: