diogogmt / humblebundle-downloader

Download book from Humble Bundles
MIT License
31 stars 3 forks source link

Reduce memory usage. Check for existing files. #9

Open tlc opened 4 years ago

tlc commented 4 years ago

Reduce memory usage by reading and writing to file, instead of reading entire file into memory.

Check for existing file with correct hash to avoid re-downloading.

Both of these are important for working with large bundles of large files. For example the cbz files of the recent "Image Comics Showcase" was 91 files totaling 23GB.

Some of this was taken from @affinityv 's earlier pull request, which included many other things as well