Skip to content

Commit

Permalink
Added caching with managed caches at the file level
Browse files Browse the repository at this point in the history
This adds a fully independent layer between the rest of the filesystem
and the block device. This requires some additionally logic around cache
invalidation and flushing, but removes the need for any higher layer to
consider read/write sizes less than what is supported by the hardware.

Additionally, these caches can be used for possible speed improvements.
This is left up to the user to optimize for their use cases. For very
limited embedded systems with byte-level read/writes, the caches could
be omitted completely, or they could even be the size of a full block
for minimizing storage access.

(A full block may not be the best for speed, consider if only a small
portion of the read block is used, but I'll leave that evaluation as an
exercise for any consumers of this library)
  • Loading branch information
geky committed May 8, 2017
1 parent 6869b14 commit 4808e9a
Show file tree
Hide file tree
Showing 2 changed files with 240 additions and 167 deletions.
Loading

0 comments on commit 4808e9a

Please sign in to comment.