mirror of
https://github.com/monero-project/monero.git
synced 2026-06-12 19:11:36 -07:00
zmq: switch to RapidJSON iterative parsing
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ FullMessage::FullMessage(std::string&& json_string, bool request)
|
||||
{
|
||||
/* Insitu parsing does not copy data from `contents` to DOM,
|
||||
accelerating string heavy content. */
|
||||
doc.ParseInsitu(std::addressof(contents[0]));
|
||||
doc.ParseInsitu<rapidjson::kParseIterativeFlag>(std::addressof(contents[0]));
|
||||
if (doc.HasParseError() || !doc.IsObject())
|
||||
{
|
||||
throw cryptonote::json::PARSE_FAIL();
|
||||
|
||||
Reference in New Issue
Block a user