Page 1 of 1

How are NVS keys stored?

Posted: Wed Jun 17, 2020 2:07 pm
by Beowulff
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?

Re: How are NVS keys stored?

Posted: Wed Jun 17, 2020 2:48 pm
by chegewara

Re: How are NVS keys stored?

Posted: Wed Jun 17, 2020 2:59 pm
by Beowulff
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.