فهرست منبع

Changed default CONFIG_LITTLEFS_CACHE_SIZE from 128 to 512 for better read speed
Updated README.md

lorol 4 سال پیش
والد
کامیت
8a82731c6b
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 4 2
      README.md
  2. 1 1
      src/esp_littlefs.c

+ 4 - 2
README.md

@@ -11,7 +11,7 @@
 ```diff
 ! Warning: This wrapper depends on ESP-IDF, esp32 core, esp_littlefs and Mbed LittleFS versions
 ```
-- For esp32 core release 1.0.4 w/ IDFv3.2 Uncomment this line in **esp_littlefs.c**:  ```//#define CONFIG_LITTLEFS_FOR_IDF_3_2```
+- For esp32 core release 1.0.4 w/ IDFv3.2 you need to uncomment this line in **esp_littlefs.c**:  ```//#define CONFIG_LITTLEFS_FOR_IDF_3_2```
 - Tested with [esp32-core #git b92c58d](https://github.com/espressif/arduino-esp32/commit/b92c58d74b151c7a3b56db4e78f2d3c90c16446f) and on core [release 1.0.4](https://github.com/espressif/arduino-esp32/releases/tag/1.0.4)
 - See LITTLEFS_time example with file timestamps that works with esp32 core on IDF v3.3
 
@@ -46,8 +46,10 @@
 |Filesystem|Read time [ms]|Write time [ms]|
 |----|----|----|
 |FAT|276|14493|
+|LITTLEFS|446*|16387|
 |SPIFFS|767|65622|
-|LITTLEFS|916|16200|
+
+*The read speed improved by changing ```#define CONFIG_LITTLEFS_CACHE_SIZE``` from 128 to 512
 
 
 ### Arduino ESP32 LittleFS filesystem upload tool 

+ 1 - 1
src/esp_littlefs.c

@@ -46,7 +46,7 @@ static const char TAG[] = "esp_littlefs";
 #define CONFIG_LITTLEFS_READ_SIZE 128
 #define CONFIG_LITTLEFS_WRITE_SIZE 128
 #define CONFIG_LITTLEFS_LOOKAHEAD_SIZE 128
-#define CONFIG_LITTLEFS_CACHE_SIZE 128
+#define CONFIG_LITTLEFS_CACHE_SIZE 512
 #define CONFIG_LITTLEFS_BLOCK_CYCLES 512
 
 //#define CONFIG_SECURE_FLASH_ENC_ENABLED 1 /* For encrypted, in part.csv:  flash_test,  data, spiffs, , 512K, encrypted */