I just tested the SPIFFS example on an ESP32 in platformio.
I made the following changes:
add function declarations before setup() (required by compiler)
change serial speed to 115200
Then the example ran without further changes. But I was surprised to see that the insert operations take several seconds (!) with the unchanged TABLE_SIZE 8192 and a record count of 34 (after adding the new ones).
I added esp_timer_get_time() (=uptime in µs) to the insertOneRecord function and got this output, see the 20th insert took about 3 full seconds.
Is this normal/expected? I would not have expected more than a few ms even for a "slow" operation of this magnitude.
I just tested the SPIFFS example on an ESP32 in platformio. I made the following changes: