forked from bblanchon/ArduinoJson
Double speed of DynamicJsonDocument::garbageCollect()
This commit is contained in:
@ -97,7 +97,6 @@ class JsonDocument : public detail::VariantOperators<const JsonDocument&> {
|
|||||||
JsonDocument tmp(*this);
|
JsonDocument tmp(*this);
|
||||||
if (!tmp._pool.capacity())
|
if (!tmp._pool.capacity())
|
||||||
return false;
|
return false;
|
||||||
tmp.set(*this);
|
|
||||||
moveAssignFrom(tmp);
|
moveAssignFrom(tmp);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user