- SD_MMC.open(filename)
Is there a way to speed up file open operation? I can imagine some kind of caching start sectors location or some sort of keeping indexed directory structure on the app's side or whatever. Or maybe some tuning is available (I'd really prefer to stay in Arduino for compatibility reasons).
I have a code that uses SD_MMC driver for accessing files on a microSD card. The app is time-critical. On the card there are folders and files, hundreds of them. The problem is access time. First files (I mean default sorting) in the folder are about 5ms till first read, but the 200th file would be already ~20ms to open, and so on, which is not acceptable for my goal.
ESP is only performing reading operations, but quite intensively.
So, please, is there a way in ESP32 Arduino to have lower level access to the filesystem or even to the SD, so I could use something instead of SD_MMC.open(filename) for random access? But I wouldn't want to write my custom fatfs )))
Please note, that this must be an ordinary FAT card, not a custom partitioned storage. It must contain files readable/writable on a PC.