Write Full File Size To Avoid Fragging Altogether?

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Locked
aen
Posts: 1
Joined: 2003-04-13 18:29
Location: Garland, TX
Contact:

Write Full File Size To Avoid Fragging Altogether?

Post by aen » 2003-04-13 18:54

Would it be feasible to write out the full size of a file as a zero-filled placeholder and entirely sidestep the possibility of fragmentation? I have 250GB+ of free space on my drive, and it feels a little ridiculous to have hundreds to thousands of fragments in the files I download.

I've just barely discovered the write buffer size setting, but even if I were to set it insanely high, that would merely mean that I have a greater chance of losing it all if something went wrong along the way, correct?

Would there be any downsides to something like this? It'd be nice as an optional setting, or maybe even on a file-by-file basis (?). I suppose there would be extra tapdancing involved with updating a separate file to record how much of each file has actually been downloaded so far, but it doesn't seem like it would be too much of a hassle.

I suppose it would suck if the placeholder file were corrupted, thus turning all downloads using this feature into garbage, effectively. I don't know. If you were aware of this downside it would still be a nice proceed-at-your-own-risk feature.

I apologize if this has been covered before, but I skimmed a couple pages worth of the forum and it didn't seem to be. At any rate, I'd be interested to hear about the feasibiliy, or even sensibility, of this or any similar schemes!

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-04-13 19:36

The write buffer was never meant to be very large. Large values for that or rollback will cause you to re-get massive amounts of files, as I read the code.

Your mention of allocating the full size of a download and using a pointer is pretty much what distiller said in this thread. The necessary context is that distiller writes pDC++, which is an attempt at segmented downloading in DC++.

arnetheduck
The Creator Himself
Posts: 296
Joined: 2003-01-02 17:15

Post by arnetheduck » 2003-04-14 05:14

Enable antifrag in the advanced settings...

Locked