mirror of
https://github.com/wownero/wownero.git
synced 2026-10-22 18:08:34 +02: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,
|
/* Insitu parsing does not copy data from `contents` to DOM,
|
||||||
accelerating string heavy content. */
|
accelerating string heavy content. */
|
||||||
doc.ParseInsitu(std::addressof(contents[0]));
|
doc.ParseInsitu<rapidjson::kParseIterativeFlag>(std::addressof(contents[0]));
|
||||||
if (doc.HasParseError() || !doc.IsObject())
|
if (doc.HasParseError() || !doc.IsObject())
|
||||||
{
|
{
|
||||||
throw cryptonote::json::PARSE_FAIL();
|
throw cryptonote::json::PARSE_FAIL();
|
||||||
|
|||||||
Reference in New Issue
Block a user