diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 094e8265ff..e3db1e914f 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 6e704a3720..71f2d6b0b6 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