XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
57 stars 48 forks source link

Don't clone handler on each request #1345

Open kuznetsss opened 2 months ago

kuznetsss commented 2 months ago

Currently we are copying handler to process each request: https://github.com/XRPLF/clio/blob/7fcd3e48bd4f2080a4433d79d6925dc0bb0bdf8f/src/rpc/common/AnyHandler.hpp#L56-L58

We could avoid it and return a handler by reference or shared pointer.