I'd like to use indexed_bzip2 to read files that I've previously written.
Presumably, it's low-cost to calculate the offsets on the fly while writing the file, instead of having to re-open the bz2 file and calculate the offsets after the write is complete. If that were possible, then I could save the offsets as described at https://github.com/mxmlnkn/indexed_bzip2/tree/master/python/indexed_bzip2#storing-and-loading-the-block-offset-map so that they would never have to be calculated separately.
This would make the overhead of using indexed_bzip2 significantly lower.
I'd like to use indexed_bzip2 to read files that I've previously written.
Presumably, it's low-cost to calculate the offsets on the fly while writing the file, instead of having to re-open the bz2 file and calculate the offsets after the write is complete. If that were possible, then I could save the offsets as described at https://github.com/mxmlnkn/indexed_bzip2/tree/master/python/indexed_bzip2#storing-and-loading-the-block-offset-map so that they would never have to be calculated separately.
This would make the overhead of using indexed_bzip2 significantly lower.