summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2015-11-16 23:09:57 +0100
committerCharles Harris <charlesr.harris@gmail.com>2015-12-17 13:18:41 -0700
commit1350b46714ac8f6f04646ae637b84ef23c2ac917 (patch)
treee5d5bfd6ac6b6d84978b8a6f67fb1b5788d44382 /numpy/core/setup_common.py
parent316c19836aa86e3fe26a041877aabbce432ec554 (diff)
downloadnumpy-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.py2
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 = [