You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #1215 was merged a new RpcServiceT which requires the Future to be boxed and because it is used for every JSON-RPC call it can significantly increase the memory usage if many layers are used.
Let's introduce a trait that makes it possible to not box all futures:
pubtraitRpcServiceT<'a>{/// The future response value.typeFuture<'cx>:Future<Output = MethodResponse>>
whereSelf:'cx,Request:'cx;/// Process the request and return the response asynchronously.fncall(&self,req:Request<'a>) -> Self::Future<'_>;}
The text was updated successfully, but these errors were encountered:
#1215 (comment)
After #1215 was merged a new RpcServiceT which requires the Future to be boxed and because it is used for every JSON-RPC call it can significantly increase the memory usage if many layers are used.
Let's introduce a trait that makes it possible to not box all futures:
The text was updated successfully, but these errors were encountered: