This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Preallocation of file takes too long

Tags: None
(comma "," separated)
rikd
Registered Member
Posts
13
Karma
0
Just in the process of switching over to KT (SVN 20-Mar-06)...

One really annoying feature is the preallocation of the individual files in a torrent.

For example:
I have a torrent which is ~10Gb in size, containing 20 of files each about 350Mb in size. Azureus and other torrent clients allocate the files almost instantaneously - while KT appears (from reading libktorrent/util/cachefile.cpp) to actually write 1MB blocksof 0s to the file.

My storage drive is over USB2 and this just takes forever :(

Was wondering if there might be a more efficient way of doing this?

or in the meantime - is there any negative impact (apart from the obvious check to ensure there is sufficient disk space) in me modifying to remove this preallocation and simply just create the file?

TIA,
RikD
George
Moderator
Posts
5421
Karma
1

Tue Mar 21, 2006 5:10 pm
I know I need to refine this a bit, or let it run in the background.
George
Moderator
Posts
5421
Karma
1

Tue Mar 21, 2006 7:00 pm
OK, I found something better to do this, update to the latest.

Make sure you rerun make -f Makefile.cvs and configure.
rikd
Registered Member
Posts
13
Karma
0

Tue Mar 21, 2006 8:59 pm
Well done - much better and really quick turnaround...

Rik.
George
Moderator
Posts
5421
Karma
1

Wed Mar 22, 2006 5:57 pm
rikd wrote:Well done - much better and really quick turnaround...

Rik.


Just a matter of finding the right system calls.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]