STORAGE

Pay only for diffs: zstd blobs in R2

2026-10-30 · 7 min read

A page drawn as a stack of blocks: heading, text, button
The page as a stack of blocks: 1200 × 750, one idea per block

Mail is mostly repetition: signatures, quoted threads, the same attachment sent twice, a PDF revised by one paragraph. Charging for every copy is a storage business pretending the repetition is new.

What happens to a message

Content-defined chunking means small edits create small new chunks. Fixed 64 KB blocks would shift every boundary after an insertion; a rolling hash keeps most boundaries stable.

The honest limit

Deduplication is per account. We do not share a chunk across two users. A cross-account 'someone already paid for this' scheme tells one person whether another person has a file. That is a content-existence leak, and it is not worth the discount.

The same bytes are free twice. Somebody else's bytes are not yours.

Free accounts get a 140 ms breather when hydrating very cold attachments over 2 MB. Reading the inbox is not slowed. Plus removes the breather. If it ever feels like a paywall, it should go.

Mail itPost it

← all notes