Pārlūkot izejas kodu

Added memory usage

Benoit Blanchon 11 gadi atpakaļ
vecāks
revīzija
5236de1433
2 mainītis faili ar 10 papildinājumiem un 1 dzēšanām
  1. 10 1
      doc/Memory model.md
  2. 0 0
      doc/Memory usage.md

+ 10 - 1
doc/Memory model.md

@@ -48,4 +48,13 @@ This fixed allocation approach may seem a bit strange, especially if your a desk
 
 Don't forget that, the memory is "freed" as soon as the `StaticJsonBuffer` is out of scope, like any other variable. It only hold the memory for a short amount of time.
 
-For that reason, you should never use a `StaticJsonBuffer` as a **global variable** because it would hold a lot of memory for the whole life of the program.
+For that reason, you should never use a `StaticJsonBuffer` as a **global variable** because it would hold a lot of memory for the whole life of the program.
+
+## Memory usage
+
+#### Object size for 8-bit AVR
+
+| Type                    | Size       |
+|-------------------------|------------|
+| JsonArray of N element  | 4 + 8 * N  |
+| JsonObject of N element | 4 + 10 * N |

+ 0 - 0
doc/Memory usage.md