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
Our current implementation of RPC request handling in the add_rpc_version_to_method in the version middleware is inefficient due to the use of serde_json::Value for parsing. This approach leads to unnecessary heap allocations and performance overhead. We need to refactor this process to improve efficiency and reduce memory usage.
Solution
Refactor the request handling to parse directly into concrete structs instead of using serde_json::Value.
Is there an existing issue?
Motivation
No response
Request
Our current implementation of RPC request handling in the
add_rpc_version_to_method
in the version middleware is inefficient due to the use ofserde_json::Value
for parsing. This approach leads to unnecessary heap allocations and performance overhead. We need to refactor this process to improve efficiency and reduce memory usage.Solution
Refactor the request handling to parse directly into concrete structs instead of using
serde_json::Value
.Thanks to the elaborate comment by @cchudant here
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: