Double speed of DynamicJsonDocument::garbageCollect()

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

View File

@ -1,6 +1,11 @@
ArduinoJson: change log
=======================
HEAD
----
* Double speed of `DynamicJsonDocument::garbageCollect()`
v6.21.0 (2023-03-14)
-------

View File

@ -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;
}