Skip to content

Commit

Permalink
feat(store): add reference counting and garbage collection to FlatFsS…
Browse files Browse the repository at this point in the history
…tore

- Add reference counting to track block usage in FlatFsStore
- Implement garbage collection with recursive dependency cleanup
- Store reference count as 8-byte header in block files
- Add helper methods for reading/writing refcounts and block data
- Add comprehensive tests for garbage collection scenarios
- Update documentation with reference counting details
  • Loading branch information
appcypher committed Feb 4, 2025
1 parent 29a0e91 commit b67b479
Show file tree
Hide file tree
Showing 4 changed files with 389 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- [ ] Consider other store implementations optimized for write or read efficiency

- [ ] `RocksDbStore` - backed by RocksDB.
- [ ] `PackedFsStore` - writes multiple blocks to a single file.
- [ ] ~`PackedFsStore` - writes multiple blocks to a single file.~

- [ ] Support compression in `FlatFsStore` for better storage efficiency.

Expand Down
Loading

0 comments on commit b67b479

Please sign in to comment.