public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [setup] branch master, updated. release_2.870-10-g8648b05
@ 2015-03-25 11:53 corinna
  0 siblings, 0 replies; only message in thread
From: corinna @ 2015-03-25 11:53 UTC (permalink / raw)
  To: cygwin-apps-cvs




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)
   {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-25 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 11:53 [setup] branch master, updated. release_2.870-10-g8648b05 corinna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).