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

Add a block cache #7

Open
thejpster opened this issue Oct 31, 2019 · 3 comments
Open

Add a block cache #7

thejpster opened this issue Oct 31, 2019 · 3 comments

Comments

@thejpster
Copy link
Member

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?

@thejpster
Copy link
Member Author

It might also help if read and write were done through closures instead of by copying memory.

@thalesfragoso
Copy link
Contributor

The managed crate also has some useful structures, and it's used with good success on smoltcp.

@thejpster
Copy link
Member Author

Closed by #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants