]> Git Repo - VerusCoin.git/commit - src/main.cpp
Pre-allocate block and undo files in chunks
authorPieter Wuille <[email protected]>
Thu, 16 Aug 2012 00:21:28 +0000 (02:21 +0200)
committerPieter Wuille <[email protected]>
Sat, 20 Oct 2012 21:08:57 +0000 (23:08 +0200)
commitbba89aa82a80f0373dcb7288d96d5b0fcb453d73
treef3b4fd8649021b52e19cfdf4620ffead5f30910e
parent5382bcf8cd23c36a435c29080770a79b5e28af42
Pre-allocate block and undo files in chunks

Introduce a AllocateFileRange() function in util, which wipes or
at least allocates a given range of a file. It can be overriden
by more efficient OS-dependent versions if necessary.

Block and undo files are now allocated in chunks of 16 and 1 MiB,
respectively.
src/main.cpp
src/main.h
src/util.cpp
src/util.h
This page took 0.020561 seconds and 4 git commands to generate.