[setup] branch master, updated. release_2.870-10-g8648b05

corinna@sourceware.org corinna@sourceware.org
Wed Mar 25 11:53:00 GMT 2015




https://sourceware.org/git/gitweb.cgi?p=cygwin-setup.git;h=8648b05caf47865394d76822dea7b37e5cc1282e

commit 8648b05caf47865394d76822dea7b37e5cc1282e
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Mar 25 12:53:23 2015 +0100

    Reading in 64K chunks is a lot faster on Win32.
    
    	* install.cc (sha512_one): Raise buffer size to 64K for performance
    	reasons.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>


Diff:
---
 ChangeLog  |    5 +++++
 install.cc |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d182896..854ba05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-25  Corinna Vinschen  <corinna@vinschen.de>
+
+	* install.cc (sha512_one): Raise buffer size to 64K for performance
+	reasons.
+
 2015-03-04  Jon TURNEY  <jon.turney@dronecode.org.uk>
 
 	* archive_tar.cc (next_file_name): Silence error for 'g' and 'x'
diff --git a/install.cc b/install.cc
index aa7c2e9..715d5fe 100644
--- a/install.cc
+++ b/install.cc
@@ -953,7 +953,7 @@ sha512_one (const packagesource& pkgsource)
   Progress.SetText4 ("Progress:");
   Progress.SetBar1 (0);
 
-  unsigned char buffer[16384];
+  unsigned char buffer[64 * 1024];
   ssize_t count;
   while ((count = thefile->read (buffer, sizeof (buffer))) > 0)
   {



More information about the Cygwin-apps-cvs mailing list