Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAT32 caching #283

Open
4 tasks
DrDeano opened this issue Jan 2, 2021 · 0 comments
Open
4 tasks

FAT32 caching #283

DrDeano opened this issue Jan 2, 2021 · 0 comments
Labels
arch: none Affects common code across architectures enhancement New feature or request optimisation An opportunity for optimising code size or performance

Comments

@DrDeano
Copy link
Member

DrDeano commented Jan 2, 2021

Currently, the FAT32 driver will write directly to the underlying stream (could be a RAM disk or a hard disk) when every a write occurs. This would update the FAT, FSInfo and short entry for the file being modified on.
Additionally, when reading files, each time there is a read, the driver will re-seek and re-read the FAT from the stream.
Adding caching to parts of the driver would increase speed.
Caching points:

  • Cache part of the FAT (as this can be big) and read new parts of the FAT when needed
  • Cache the FSInfo
  • Cache file entries
  • Cache files entries in a directory
@DrDeano DrDeano added enhancement New feature or request arch: none Affects common code across architectures optimisation An opportunity for optimising code size or performance labels Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch: none Affects common code across architectures enhancement New feature or request optimisation An opportunity for optimising code size or performance
Projects
None yet
Development

No branches or pull requests

1 participant