mirror of
https://github.com/monero-project/monero.git
synced 2026-01-13 21:36:32 -08:00
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster
This commit is contained in:
@@ -906,13 +906,13 @@ namespace rpc
|
||||
return true;
|
||||
}
|
||||
|
||||
epee::byte_slice DaemonHandler::handle(const std::string& request)
|
||||
epee::byte_slice DaemonHandler::handle(std::string&& request)
|
||||
{
|
||||
MDEBUG("Handling RPC request: " << request);
|
||||
|
||||
try
|
||||
{
|
||||
FullMessage req_full(request, true);
|
||||
FullMessage req_full(std::move(request), true);
|
||||
|
||||
const std::string request_type = req_full.getRequestType();
|
||||
const auto matched_handler = std::lower_bound(std::begin(handlers), std::end(handlers), request_type);
|
||||
|
||||
Reference in New Issue
Block a user