HomePhabricator

Pre-allocate block and undo files in chunks
bba89aa82a80Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Aug 16 2012, 00:21
deadalnixPushed on May 14 2017, 22:04
Parents
rABC5382bcf8cd23: Multiple blocks per file
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rABCbba89aa82a80: Pre-allocate block and undo files in chunks (authored by Pieter Wuille <pieter.wuille@gmail.com>).Oct 20 2012, 21:08