mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-21 14:32:23 +02:00
Added code size
This commit is contained in:
@ -213,21 +213,38 @@ Here are the size of the main classes of the library.
|
|||||||
|
|
||||||
This table is for an 8-bit Arduino, types would be bigger on a 32-bit processor.
|
This table is for an 8-bit Arduino, types would be bigger on a 32-bit processor.
|
||||||
|
|
||||||
<table>
|
| Type | Size in bytes |
|
||||||
<tr>
|
| ------------ | ------------- |
|
||||||
<th>Type</th>
|
| `Parser<N>` | 4 + 8 x N |
|
||||||
<th>Size in bytes</th>
|
| `JsonArray` | 4 |
|
||||||
</tr>
|
| `JsonObject` | 4 |
|
||||||
<tr>
|
| `JsonValue` | 4 |
|
||||||
<td>Parser<N></td>
|
|
||||||
<td>4 + 8 x N</td>
|
Code size
|
||||||
</tr>
|
---------
|
||||||
<tr>
|
|
||||||
<td>JsonArray</td>
|
The sizes have been obtained with Arduino IDE 1.0.5 for a Duemilanove.
|
||||||
<td>4</td>
|
|
||||||
</tr>
|
### Minimum setup
|
||||||
<tr>
|
|
||||||
<td>JsonObject</td>
|
| Function | Size |
|
||||||
<td>4</td>
|
| ------------------------------------ | ---- |
|
||||||
</tr>
|
| `jsmn_parse()` | 962 |
|
||||||
</table>
|
| `JsonValue::operator[](char const*)` | 218 |
|
||||||
|
| `JsonParserBase::parse()` | 116 |
|
||||||
|
| `JsonValue::operator[](int)` | 108 |
|
||||||
|
| `strcmp()` | 18 |
|
||||||
|
|
||||||
|
### Additional space for integers
|
||||||
|
|
||||||
|
| Function | Size |
|
||||||
|
| ---------------------------- | ---- |
|
||||||
|
| `strtol()` | 606 |
|
||||||
|
| `JsonValue::operator long()` | 94 |
|
||||||
|
|
||||||
|
### Additional space for floating points
|
||||||
|
|
||||||
|
| Function | Size |
|
||||||
|
| -------------------------------- | ----- |
|
||||||
|
| `strtod()` | 1369 |
|
||||||
|
| `JsonValue::operator double()` | 82 |
|
||||||
|
Reference in New Issue
Block a user