commit | 894503c758819f4badcfd90d09d91de315bb0734 | [log] [tgz] |
---|---|---|
author | Mike J. Chen <mjchen@google.com> | Wed Feb 28 14:25:31 2024 -0800 |
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | Tue Mar 05 10:55:40 2024 +0100 |
tree | 0c2dd4d0543f56ca89a44b92cb93270aebc84e2f | |
parent | 46d6e2e09997b4c58fa8ffd3f63d4e19fa57f9bc [diff] |
nvs: improve nvs_flash_cmp_const() Replace the use of a memcmp of a temp buffer filled with the comparison value with a direct comparison of the read buffer contents. Improves speed of the function (no more memset() call) and reduces stack usage. Signed-off-by: Mike J. Chen <mjchen@google.com>