Closed benbjohnson closed 1 year ago
Update: HTTP compression was attempted in #155 but it interfered with http.Flusher
. Implementing in LTX would allow us to compress once instead of compressing for each replica connection.
I used lz4 on Litestream and it worked pretty well. From my understanding, lz4 is faster but zstd has a better compression ratio. I've found that the compression & decompression speed is usually more important for something like LiteFS rather than eeking out every last byte of compression.
Closed via #249
LTX files are currently sent to replicas as uncompressed blobs. LTX files should support compression internally.