public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: corinna@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [setup] branch master, updated. release_2.870-10-g8648b05
Date: Wed, 25 Mar 2015 11:53:00 -0000	[thread overview]
Message-ID: <20150325115356.77089.qmail@sourceware.org> (raw)




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


                 reply	other threads:[~2015-03-25 11:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150325115356.77089.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).