aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/daemon_handler.cpp
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-05-29 22:08:19 -0400
committerLee Clagett <code@leeclagett.com>2020-08-14 19:46:59 +0000
commit60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a (patch)
treea0dee7bae6708f24732aa8ed0e3da39de4729a8f /src/rpc/daemon_handler.cpp
parentFix pruned tx for ZMQ's GetBlocksFast (diff)
downloadmonero-60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a.tar.xz
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster
Diffstat (limited to 'src/rpc/daemon_handler.cpp')
-rw-r--r--src/rpc/daemon_handler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp
index fd33318b3..0a26a4d5d 100644
--- a/src/rpc/daemon_handler.cpp
+++ b/src/rpc/daemon_handler.cpp
@@ -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);