Store static string in a dedicated pool

This commit is contained in:
Benoit Blanchon
2025-02-27 13:42:04 +01:00
parent 907bb43481
commit 08b2400592
25 changed files with 133 additions and 63 deletions
+1
View File
@@ -32,6 +32,7 @@ TEST_CASE("JsonDocument::add(T)") {
REQUIRE(doc.as<std::string>() == "[\"hello\"]");
REQUIRE(spy.log() == AllocatorLog{
Allocate(sizeofPool()),
Allocate(sizeofStaticStringPool()),
});
}