esp-idf/components
Ivan Grokhotkov 1dc7fda812 Merge branch 'feature/nvs_speed_improvement' into 'master'
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
2016-09-26 12:51:01 +08:00
..
bootloader bootloader: remove trailing newlines from log messages 2016-09-20 14:18:23 +08:00
bt add 'extern C' in header files 2016-09-23 14:54:30 +08:00
driver Remove some macros and declarations that are already in rom/gpio.h 2016-09-21 12:08:42 +08:00
esp32 Merge branch 'bugfix/clean_up_warnings' into 'master' 2016-09-26 08:16:31 +08:00
esptool_py Merge branch 'master' into feature/esptool_upstream 2016-09-12 18:02:10 +10:00
expat clean up warnings 2016-09-23 14:46:39 +08:00
freertos Spinlocks already come initialized. Remove the code that would essentially re-initialize them at runtime 2016-09-23 17:46:16 +08:00
json json & expat: Update component.mk after merging from master 2016-09-09 14:07:45 +10:00
log components/log: regroup macros for better readability 2016-09-19 08:53:09 +08:00
lwip clean up warnings 2016-09-23 14:46:39 +08:00
mbedtls Enable SO_REUSEADDR in LWIP 2016-09-18 16:43:48 +08:00
newlib Name component makefiles component.mk instead of Makefile 2016-09-08 13:41:19 +10:00
nvs_flash components/nvs: fix broken sentences in comment blocks 2016-09-26 12:41:04 +08:00
partition_table Remove bin/ directory in favour of an add_path.sh script that can be sourced 2016-09-01 18:45:10 +10:00
spi_flash components/spi_flash: remove stray level of indentation 2016-09-26 12:47:17 +08:00
tcpip_adapter tcpip_adapter: set sta ip to IP_ADDR_ANY when sta disconnect from ap 2016-09-22 11:49:37 +08:00