Skip to content

Commit c3fe99b

Browse files
committed
todo comment
1 parent c32065e commit c3fe99b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/segment/writer.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ impl<C: Compressor + Clone> Writer<C> {
113113
hasher.update(&value);
114114
let checksum = hasher.digest();
115115

116+
// TODO: 2.0.0 formalize blob header
117+
// into struct... store uncompressed len as well
118+
// so we can optimize rollover by avoiding
119+
// repeated compression & decompression
120+
116121
// Write header
117122
self.active_writer.write_all(BLOB_HEADER_MAGIC)?;
118123

0 commit comments

Comments
 (0)