guzba / zippy

Pure Nim implementation of deflate, zlib, gzip and zip.
MIT License
246 stars 29 forks source link

createZipArchive as stream to avoid "out of memory" #49

Closed ThomasTJdev closed 1 year ago

ThomasTJdev commented 1 year ago

I'm really glad for this library in our ZIP-utils.

We have started to use the library to create ZIP archives, which works fine until the ZIP files are larger than the available memory. In those cases we are getting the "out of memory".

Are there any hacks to overcome this? Procedures for using a stream, adding individual files instead of directories, or is it there no solution to this yet?

guzba commented 1 year ago

Hello, thanks for the issue. I am not happy with how I implemented my first take at creating zip archives and I only keep it around for compatibility. I someday plan to do a better version but I do not know when I'll be getting to it.

ThomasTJdev commented 1 year ago

Thanks for the reply @guzba and all the great work you put into the library. I'll find another way to zipping large archives for now.