diff options
| author | Jack Nagel | 2015-01-05 10:45:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-01-05 10:45:05 -0500 |
| commit | 7f06a11f58a3c491262f693f613036ae7df4870b (patch) | |
| tree | 6d7582afff811f09c4940f116330bc92e399d9ce /Library | |
| parent | 570ce2d7b3a5a39c18d443c49a764cbd1fe8a624 (diff) | |
| download | homebrew-7f06a11f58a3c491262f693f613036ae7df4870b.tar.bz2 | |
Buffer 16K at a time
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 094e8265f..e3db1e914 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -209,7 +209,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy Utils.popen_read(tool, "-f", cached_location.to_s, "-c") do |pipe| File.open(target, "wb") do |f| buf = "" - f.write(buf) while pipe.read(1024, buf) + f.write(buf) while pipe.read(16384, buf) end end end diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 6e704a372..71f2d6b0b 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -262,7 +262,7 @@ class Pathname digest.file(self) else buf = "" - open("rb") { |f| digest << buf while f.read(1024, buf) } + open("rb") { |f| digest << buf while f.read(16384, buf) } end digest.hexdigest end |
