diff options
author | Lee Clagett <code@leeclagett.com> | 2020-05-29 22:08:19 -0400 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2020-08-14 19:46:59 +0000 |
commit | 60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a (patch) | |
tree | a0dee7bae6708f24732aa8ed0e3da39de4729a8f /src/rpc/message.h | |
parent | Fix pruned tx for ZMQ's GetBlocksFast (diff) | |
download | monero-60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a.tar.xz |
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster
Diffstat (limited to 'src/rpc/message.h')
-rw-r--r-- | src/rpc/message.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rpc/message.h b/src/rpc/message.h index b858a5913..04bf1a111 100644 --- a/src/rpc/message.h +++ b/src/rpc/message.h @@ -72,9 +72,7 @@ namespace rpc public: ~FullMessage() { } - FullMessage(FullMessage&& rhs) noexcept : doc(std::move(rhs.doc)) { } - - FullMessage(const std::string& json_string, bool request=false); + FullMessage(std::string&& json_string, bool request=false); std::string getRequestType() const; @@ -91,10 +89,13 @@ namespace rpc private: FullMessage() = default; + FullMessage(const FullMessage&) = delete; + FullMessage& operator=(const FullMessage&) = delete; FullMessage(const std::string& request, Message* message); FullMessage(Message* message); + std::string contents; rapidjson::Document doc; }; |