Added code size

This commit is contained in:
Benoît Blanchon
2014-07-23 13:45:07 +02:00
parent 44e5549456
commit 7e4ab9f31c

View File

@ -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 | | JsonArray<N> | 8 + 6 x N |
| JsonObject<N> | 8 + 8 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 |