Search code examples
androidperformancezipcpubandwidth

Is it better to .zip the data before downloading?


I have A LOT of (optional) audio files.. I have 6400 audio files, with average size ~40 kb each, and total size ~400 mb..
I was wondering how will I download the files, Is it better to:

  1. download a .zip file and then extract .. less bandwidth , more sdcard space requireed , more cpu to unzip..
  2. download all the files (no .zip file)... more bandwidth , less sdcard and less cpu..

What is more reasonable?


Solution

  • Do a little test first...
    Most audio files are already compressed, and Zipping them does not always reduce the size.

    And if you can get only a small reduction with a high compression (= high CPU demand) setting then zipping will not be worth it.

    You will have to measure to see on what side of the tipping point your files are.