summaryrefslogtreecommitdiff
path: root/src/chunkid.rs
AgeCommit message (Collapse)AuthorFilesLines
2022-04-16refactor: rename Checksum to LabelLars Wirzenius1-3/+3
Label is a clearer and more accurate name for the type now that it is not just a checksum. Also, serialize a Label in tests, rather than using string literals. This is more correct, and we'll be changing serialization later. Sponsored-by: author
2021-12-31docs: add documentation comments to crateLars Wirzenius1-1/+12
Also, make it an error for a public symbol to not be documented. Sponsored-by: author
2021-09-18refactor: define a Checksum type and use it where appropriateLars Wirzenius1-3/+3
This will make it harder to compare, say, a SHA-256 and a SHA3, later, when we add more checksum types. Sponsored-by: author
2021-03-27refactor: rename ChunkId::from_str to ChunkId::recreateLars Wirzenius1-3/+4
Less confusion with FromStr::from_str this way.
2021-01-04feat: verify checksum of chunks downloaded from serverLars Wirzenius1-2/+6
2021-01-03feat: load chunk metadata into index at startupLars Wirzenius1-0/+9
This needs to be replace with a database or something, but it'll do for now.
2020-11-25perf: store chunks on disk in a 3-level directory treeLars Wirzenius1-0/+4
git does the same thing. This improves the wall clock time to run benchmark-store with a million chunks from a 40.36 seconds to 18.70, on a system with NVMe and ext4.
2020-11-25feat: add programs to benchmark server chunk storageLars Wirzenius1-0/+5
2020-11-08feat: make ChunkId serializable to SQLiteLars Wirzenius1-0/+10
We will need this when we store a backup generation in an SQLite file.
2020-10-16feat: obnam-restore restores generation to stdoutLars Wirzenius1-3/+8
2020-09-18use to_string method for ChunkId instead of format! macroLars Wirzenius1-4/+4
2020-09-18feat: make ChunkId usable in a HashMap and serializbleLars Wirzenius1-1/+3
We will soon be using ChunkId as keys in a HashMap and serialize them in HTTP server responses. This commit enables those things.
2020-09-17feat: add an in-memory index of chunks for searchingLars Wirzenius1-1/+1
2020-09-17feat: add an initial ChunkId implementationLars Wirzenius1-0/+83