divans
divans copied to clipboard
Question: Is the divans' on-disk file format seek-able?
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?
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