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/core/setup_common.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/core/setup_common.py')
-rw-r--r-- | numpy/core/setup_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py index d93e475e3..e0cb3f630 100644 --- a/numpy/core/setup_common.py +++ b/numpy/core/setup_common.py @@ -104,7 +104,7 @@ MANDATORY_FUNCS = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", OPTIONAL_STDFUNCS = ["expm1", "log1p", "acosh", "asinh", "atanh", "rint", "trunc", "exp2", "log2", "hypot", "atan2", "pow", "copysign", "nextafter", "ftello", "fseeko", - "strtoll", "strtoull", "cbrt", "strtold_l",] + "strtoll", "strtoull", "cbrt", "strtold_l", "fallocate"] OPTIONAL_HEADERS = [ |