From c3fe99b6930aa137a2a73c0222068dfae4a0e447 Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Sun, 29 Sep 2024 14:54:02 +0200 Subject: [PATCH] todo comment --- src/segment/writer.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/segment/writer.rs b/src/segment/writer.rs index a61e140..b54944d 100644 --- a/src/segment/writer.rs +++ b/src/segment/writer.rs @@ -113,6 +113,11 @@ impl Writer { hasher.update(&value); let checksum = hasher.digest(); + // TODO: 2.0.0 formalize blob header + // into struct... store uncompressed len as well + // so we can optimize rollover by avoiding + // repeated compression & decompression + // Write header self.active_writer.write_all(BLOB_HEADER_MAGIC)?;