From 7e4ab9f31c8caaaa53c295b2a10051f148711889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Wed, 23 Jul 2014 13:45:07 +0200 Subject: [PATCH] Added code size --- JsonGenerator/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/JsonGenerator/README.md b/JsonGenerator/README.md index 5de526af..c7a6211f 100644 --- a/JsonGenerator/README.md +++ b/JsonGenerator/README.md @@ -172,3 +172,31 @@ This table is for an 8-bit Arduino, types would be bigger on a 32-bit processor. | --------------------| ------------- | | JsonArray<N> | 8 + 6 x N | | JsonObject<N> | 8 + 8 x N | + + +Code size +--------- + +### Minimum setup + +| Function | Size | +| ---------------------------- | ---- | +| `JsonObjectBase::printTo()` | 222 | +| `EscapedString::printTo()` | 202 | +| `JsonArrayBase::printTo()` | 164 | +| `Print::print(char const*)` | 146 | +| `JsonValue::printStringTo()` | 6 | + +### Additional space for integers + +| Function | Size | +| ---------------------------- | ---- | +| `Print::print(long, int)` | 328 | +| `JsonValue::printLongTo()` | 22 | + +### Additional space for floating point + +| Function | Size | +| ------------------------------ | ---- | +| `Print::print(double, int)` | 1548 | +| `JsonValue::printDouleTo<2>()` | 22 | \ No newline at end of file