dotnet / dotnet/dotnet-api-docs
[NewTopic] ZipArchive memory usage should be documented
Open
area-System.IO.Compression
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
When reading a ZipArchive from a non-seekable stream, the library loads the entire archive into memory before processing individual members. It looks like this is expected behavior - zip files store entry metadata at the end of the archive, and it's necessary to read the metadata before extracting files.
Though valid, this should be noted in the documentation for ZipArchive so people aren't surprised by the significant memory usage.
Contributor guide
Assessment
This issue has not been assessed yet.