浏览代码

Added code size

Benoît Blanchon 11 年之前
父节点
当前提交
7e4ab9f31c
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      JsonGenerator/README.md

+ 28 - 0
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     |
 | 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   |