diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2015-11-16 23:09:57 +0100 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-12-17 13:18:41 -0700 |
commit | 1350b46714ac8f6f04646ae637b84ef23c2ac917 (patch) | |
tree | e5d5bfd6ac6b6d84978b8a6f67fb1b5788d44382 /numpy/matrixlib/defmatrix.py | |
parent | 316c19836aa86e3fe26a041877aabbce432ec554 (diff) | |
download | numpy-1350b46714ac8f6f04646ae637b84ef23c2ac917.tar.gz |
ENH: use linux fallocate to reserve diskspace in array.tofile
fallocate allows the filesystem to make smarter decisions about space
allocation and gives a fast failure path for insufficient space.
This is very important for filesystems that suffer a lot from
fragmentation like btrfs.
Restricted to linux only as that is the only system I know the behavior
of. Other systems might also have this system call but we don't want to
accidentally trigger explicit zeroing behavior as e.g. posix_fallocate
would when there is no support for a real fallocate.
Diffstat (limited to 'numpy/matrixlib/defmatrix.py')
0 files changed, 0 insertions, 0 deletions