Should NVS handles be closed to reduce RAM footprint? #1143
frankonski
started this conversation in
Ideas
Replies: 1 comment
-
|
I have not explored in detail but have found that in general handles for these types of services generally consume minimal memory and keeping them open simplifies the code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that HomeSpan opens up to 6 NVS handles using
nvs_open()but none of them is ever closed withnvs_close().Would it help reduce memory footprint if NVS handles were only opened, read/write then closed only when needed?
Similarly, it would help if SRP and OTA NVS handles were not created of SRP/OTA isn't used by a sketch.
Beta Was this translation helpful? Give feedback.
All reactions