changeset 15:199fc63c60c1

Increase buffersize for filehash computing.
author Tom Fredrik Blenning Klaussen <bfg@sim.no>
date Sat, 25 Aug 2012 01:42:13 +0200
parents e60d6caceb62
children 06166d6c083b
files FileDBLink.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/FileDBLink.cpp	Fri Aug 24 23:02:01 2012 +0200
+++ b/FileDBLink.cpp	Sat Aug 25 01:42:13 2012 +0200
@@ -37,7 +37,7 @@
 
 QByteArray FileDBLink::computeHash(const QString& path, QCryptographicHash::Algorithm algorithm)
 {
-  const static uint buffersize = 8192;
+  const static uint buffersize = 32768;
   QCryptographicHash hash(algorithm);
   QFile file(path);
   if ( file.open( QIODevice::ReadOnly ) ) {