mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
1dc7fda812
nvs: speed improvement and erase APIs NVS initialization speed issue raised in https://ezredmine.espressif.com/issues/6881 has been addressed for single core mode through optimization of `spi_flash_*` routines. This MR addresses same issue for dual core mode. - An index table is added at Page level, it allows doing fast search of item index based on key name and namespace. This heavily reduces the number of flash reads. - Write operations are batched when writing/erasing long variable-length values (str and blob). This gives a 33% reduction in the number of writes for a 64-byte value, 50% reduction for a 96-byte value. - Add optional (configurable via menuconfig) perfomance counters for spi_flash APIs With these changes, total init time for NVS goes down from 2 seconds to 140 ms. Additional RAM usage is 128-640 bytes per page, depending on content. Typical RAM usage for current use case (storing wifi configuration parameters) is 256 bytes. This change also exposes APIs to erase single key or the whole namespaces, needed for https://ezredmine.espressif.com/issues/6769. See merge request !105 |
||
---|---|---|
.. | ||
bootloader | ||
bt | ||
driver | ||
esp32 | ||
esptool_py | ||
expat | ||
freertos | ||
json | ||
log | ||
lwip | ||
mbedtls | ||
newlib | ||
nvs_flash | ||
partition_table | ||
spi_flash | ||
tcpip_adapter |