Page 1 of 1

pre-allocate all files

Posted: Fri Jul 26, 2013 4:14 am
by enOehTsIsihT
Neoloader may need the function.

And it let user choose that,append or not.

Posted: Sat Jul 27, 2013 4:56 pm
by DavidXanatos
I don't see the benefit in prealocating files, since neo uses a asynchronous IO there should be no problems allocating large files on the fly.

Posted: Mon Jan 20, 2014 6:17 am
by Neo26
It seems that it's implemented instead... why did you changed idea ? It's even not switchable.

Posted: Mon Jan 20, 2014 8:40 am
by DavidXanatos
There is an major issue when writing to an empty many GB large file at the end.
such an action triggers windows to fill all the empty space before the written area with 0's and that takes a loooong time, so long infact that the buffer runs full and neo must stop downloading for many minutes for the write operations to finish.
Thats not good and the only proper fix is to preallocate the file.

Fatal: Not able to open ./cache/data_global.php