#1
|
|||
|
|||
Files aren't allocated before write on Windows
To eliminate heavy file fragmentation, jDownloader should use **External links are only visible to Support Staff**SetEndOfFile function after starting download, so Windows will know exact file's size and he can allocate enough free space beforehand. As it is right now, jDownloader just writes files in chunks without telling Windows what final size will be, so file will get heavily fragmented. I don't know if java doesn't support this, but if it does you could implement this.
|
#2
|
||||
|
||||
Ticket:
GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
Since I can't create account on tracker, I will answer here:
@jiaz You are right, I forgot that jDownloader can download file in multiple chunks. And that way, when using SetEndOfFile it will write zeros to where furthest pointer is. But this still could be useful when someone uses only one chunk, it won't write zeros to whole file. For example, Total Commander uses this when copying/extracting files, IMGBurn uses this when creating iso. They first send SetEndOfFile then move pointer to beginning and start writing data. I think if you already made some test build, then you could leave this and just use it when file is downloading in one chunk. Or add toggle option to advanced config. Last edited by zdzichu476; 03.11.2014 at 21:28. |
#4
|
||||
|
||||
I added your comment to the bugtracker ticket
GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#5
|
|||
|
|||
@jiaz
No, you will not create sparse file. Here's something I found that could shed some light on this **External links are only visible to Support Staff****External links are only visible to Support Staff** OP Provided good description of this problem and how it could be resolved, but Igor Pavlov somehow misunderstood him |
#6
|
||||
|
||||
Answered.
GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|