T
T
Timofey2021-04-17 14:41:58
C++ / C#
Timofey, 2021-04-17 14:41:58

How to work with compressed data without compressing and decompressing the entire pack, but only accessing certain data, deleting and writing?

I am writing my own local version control system, I came to the conclusion that the easiest way to store old edits is in a compressed archive, I want to work with them, but so that with a new version I would put the latest version in a compressed folder, and in case of a rollback, delete this data between the modern version and the one we need, so as not to do compression and decompression every 10 seconds.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2021-04-17
@timofeygusevopal

there are no miracles: in order for the data to be original, they need to be decompressed
, some algorithms allow decompressing a part, zip seems to be exactly the same, storing the structure of the contained files in the header, some - no,
study

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question