mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-06 14:14:44 +02:00
Updated FAQ (markdown)
4
FAQ.md
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?
|
||||
|
Reference in New Issue
Block a user