mirror of
https://github.com/monero-project/monero.git
synced 2025-12-16 17:34:02 -05: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
|
|
@ -55,7 +55,7 @@ class RpcHandler
|
|||
RpcHandler() { }
|
||||
virtual ~RpcHandler() { }
|
||||
|
||||
virtual epee::byte_slice handle(const std::string& request) = 0;
|
||||
virtual epee::byte_slice handle(std::string&& request) = 0;
|
||||
|
||||
static boost::optional<output_distribution_data>
|
||||
get_output_distribution(const std::function<bool(uint64_t, uint64_t, uint64_t, uint64_t&, std::vector<uint64_t>&, uint64_t&)> &f, uint64_t amount, uint64_t from_height, uint64_t to_height, const std::function<crypto::hash(uint64_t)> &get_hash, bool cumulative, uint64_t blockchain_height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue