From 10a8921bbcd9802ad2425e8cee1e5ca70fb0b241 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 13 Jun 2018 09:27:59 +0200 Subject: Speed up file copy Hmm, as it turns out QFile does a much better, e.g. faster, job than my open-coded file copy with a progress dialog. I always wondered why it only did 150-170Mbit. I thought that it was just the calculation, but now I have 400 Mbit, and it still stalls at 150 Mbit. QFile::copy maxes out the line, so get rid of the ProgressDialog and show a status message instead. Copy can be canceled by the context menu, but FileCopier will always finish the current file, because I don't want to lock and unlock the CancelMutex during copy. Besides, QFile::copy doesn't admit that :) --- ShemovCleaner.pro | 2 -- 1 file changed, 2 deletions(-) (limited to 'ShemovCleaner.pro') diff --git a/ShemovCleaner.pro b/ShemovCleaner.pro index 8f59657..efdd964 100644 --- a/ShemovCleaner.pro +++ b/ShemovCleaner.pro @@ -29,7 +29,6 @@ HEADERS += \ globals.h \ helper.h \ origindialog.h \ - progressdialog.h \ shemovcleaner.h \ torrentdisplay.h \ torrentparser.h \ @@ -49,7 +48,6 @@ SOURCES += \ helper.cpp \ main.cpp \ origindialog.cpp \ - progressdialog.cpp \ shemovcleaner.cpp \ torrentdisplay.cpp \ torrentparser.cpp \ -- cgit v1.2.3-70-g09d2