mirror of
https://github.com/monero-project/monero.git
synced 2025-08-17 04:20:30 -04:00
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster
This commit is contained in:
parent
fe96e66ebe
commit
60627c9f24
6 changed files with 15 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue