How are NVS keys stored?

Beowulff
Posts: 17
Joined: Fri Mar 01, 2019 2:59 am

How are NVS keys stored?

Postby Beowulff » Wed Jun 17, 2020 2:07 pm

I am using NVS for it’s Flash wear-leveling abilities. I am only storing a small number of Uint_32 values. Is there any advantage to using short keys vs long ones? If I call my keys “A”,”B”,”C”, vs. “This is a very long, and probably needlessly verbose key”, is the amount of storage that each key pair uses reduced? Or, does the NVS code hash all keys to the same length?

chegewara
Posts: 2306
Joined: Wed Jun 14, 2017 9:00 pm

Re: How are NVS keys stored?

Postby chegewara » Wed Jun 17, 2020 2:48 pm


Beowulff
Posts: 17
Joined: Fri Mar 01, 2019 2:59 am

Re: How are NVS keys stored?

Postby Beowulff » Wed Jun 17, 2020 2:59 pm

Thanks.
Yeah, I saw that soon after I posted my question.
So, for anyone who might stumble across this: The key is a fixed-length (16 byte) field.

Who is online

Users browsing this forum: atique, Bing [Bot], cistern and 198 guests