I'm about to make a design decision that could potentially have visible performance implications. Generally speaking, how do libraries handle unzipping; is it cheaper to unzip a file from memory or from hard disk?
I imagine this varies from library to library, but what about zlib — just an example of a more popular library —, when it extracts from hard disk does it first copy the data to memory anyway (meaning there's no performance difference between the two approaches), or is it able to extract directly from the hard disk?