Double speed of DynamicJsonDocument::garbageCollect()

This commit is contained in:
Benoit Blanchon committed 2023-03-20 12:32:52 +01:00
1 parent 5edd435fe9
commit 9bb3f4051d
2 files changed
+5 -1

No files matched your search

@@ -127,7 +127,6 @@ class BasicJsonDocument : AllocatorOwner<TAllocator>, public JsonDocument {
BasicJsonDocument tmp(*this);
if (!tmp.capacity())
return false;
tmp.set(*this);
moveAssignFrom(tmp);
return true;
}