Is there any way to decompress a single file from a compressed folder without having to decompress an entire folder?
I am dealing with a huge 2d map which I need to compress to save on disc (without the compression it is above 22GB so there is no way I can store it and send over network).
I am storing data in chunks which are stored as single files. Each chunk takes 400~B (after zlib compression) but files take 4KB so the entire folder is 750MB which is still too much for me. If I could just compress the entire folder I assume it would be about 75MB which is what I was aiming for.
Compression method/library doesn't matter for me, I just want it to run in nodejs. I have checked the documentation for zlib but I found no way of doing such thing (the documentation is so lacking I can't be sure if there is no way of doing it though). LZ4 seems to be able to do this but it just lets me choose which part of a compressed file I want to read which means I would have to store information on how big each chunk (file) is, which is unacceptable.