divans icon indicating copy to clipboard operation
divans copied to clipboard

Question: Is the divans' on-disk file format seek-able?

Open oleid opened this issue 7 years ago • 1 comments

Is the divans on-disk file format seek-able? I.e. would it be possible to start decompressing somewhere in a file or would one need to decompress everything from the start?

Or in rust terms: could DivansDecompressorReader implement the std::io::Seek trait?

oleid avatar Jun 20 '18 11:06 oleid

not at the moment--but it would actually be a pretty small change--I patched https://github.com/dropbox/lepton/commit/eb6fde4a744130017ff0e2cf42a0cb3c48581c19 to be seekable (though for images its less useful) by simply chopping the file up in regular sections (eg 2 or 4 mb) and resetting all the state at the boundary area. It should be even easier to do a similar change to this codebase

danielrh avatar Jun 20 '18 21:06 danielrh