-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ZipFile.open instead of ZipFile.read (#5848)
To avoid huge memory usage in unusual situations (e.g. a TensorFlow wheel on a Raspberry Pi), use ZipFile.open and shutil.copyfileobj instead of reading all the decompressed data into a byte-string.
- Loading branch information
1 parent
2d545dd
commit 62c27de
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Greatly reduce memory usage when installing wheels containing large files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters