forked from NetBSDfr/pkgin
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stream package fetches directly to the local file.
Previously package downloads would go through download_file() and cache the entire file in RAM before writing to disk. Introduce a new download_pkg() function which streams 4K at a time and significantly reduces memory usage.
- Loading branch information
Jonathan Perkin
committed
Jul 31, 2015
1 parent
e7efa1f
commit 0e421ba
Showing
3 changed files
with
82 additions
and
7 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
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
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