Updated FAQ (markdown)

Benoît Blanchon
2016-04-21 09:44:18 +02:00
parent 357be9b144
commit d54b725e3b

4
FAQ.md

@@ -376,7 +376,7 @@ Size | fixed | variable :+1:
Location | stack<sup>(1)</sup> | heap
Memory overhead | small :+1: | big
Code size | small :+1: | big
Speed | fast :+1: | slow
Speed | fast :+1: | slow<sup>(4)</sup>
Cleanup | automatic<sup>(2)</sup> | automatic
Reusable | no<sup>(3)</sup> | no<sup>(3)</sup>
@@ -386,6 +386,8 @@ Reusable | no<sup>(3)</sup> | no<sup>(3)</sup>
<sup>(3)</sup> there is a workaround (see issues [#72](https://github.com/bblanchon/ArduinoJson/issues/72) and [#115](https://github.com/bblanchon/ArduinoJson/issues/115)) for those who are looking for troubles.
<sup>(4)</sup> A `DynamicJsonBuffer` calls `malloc()` to allocate its memory, and it may have to do this several times if it needs to grow. However, you can specify an initial size to the constructor, so as to make sure that the buffer is big enough and that no further allocation will be needed.
As a general rule, if your `StaticJsonBuffer` is bigger than 2K, then it may be a good time to switch to a `DynamicJsonBuffer`.
### How to determine the buffer size?