embedded-sdmmc-rs
embedded-sdmmc-rs copied to clipboard
Add a block cache
It would improve performance if we had a write-through block cache, particularly in the cluster allocation loop or for multiple small writes (as we'd avoid the repeated reads).
The user would need to supply the storage, and we just need a basic structure to track which sectors are cached (e.g. a HashMap). Maybe using heapless?
It might also help if read and write were done through closures instead of by copying memory.
The managed
crate also has some useful structures, and it's used with good success on smoltcp
.