aboutsummaryrefslogtreecommitdiff
path: root/TODO.md
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-13 15:23:32 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-13 15:25:11 +0200
commit3e0123b9d8a1097e74fcd500b72cbdaa00c7a49a (patch)
treee88736021d21463717011ab0771a3637697c0217 /TODO.md
parent7f65509f10704a0fbe2ad7e227eee1d0babc9c93 (diff)
downloaddna-backup-3e0123b9d8a1097e74fcd500b72cbdaa00c7a49a.tar.gz
dna-backup-3e0123b9d8a1097e74fcd500b72cbdaa00c7a49a.zip
fix loadChunks by using cache instead of reading file
This way there is only one place where we read chunks and where the read/write wrapper is used. This also allows to remove LoadedChunk as it is not used anymore.
Diffstat (limited to 'TODO.md')
-rw-r--r--TODO.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index 9df11d2..adff59b 100644
--- a/TODO.md
+++ b/TODO.md
@@ -26,7 +26,7 @@ priority 1
- [x] compress before storing
- [x] decompress before loading
- [ ] store compressed chunks into tracks of `trackSize` (1024o)
-- [x] add chunk cache... what was it for again ??
+- [x] add chunk cache to uniquely store chunks in RAM
- [x] better tests for `(*Repo).Commit`
priority 2
@@ -41,6 +41,11 @@ priority 2
- [ ] custom binary marshal and unmarshal for chunks
- [ ] use `loadChunkContent` in `loadChunks`
- [ ] store hashes for faster maps rebuild
+- [ ] try [Fdelta](https://github.com/amlwwalker/fdelta) and
+ [Xdelta](https://github.com/nine-lives-later/go-xdelta) instead of Bsdiff
+- [ ] maybe use an LRU cache instead of the current FIFO one.
+- [x] remove `LoadedChunk` and only use `StoredChunk` instead now that the cache
+ is implemented
reunion 7/09
------------