summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorJohn Zwinck <jzwinck@gmail.com>2017-09-14 00:16:23 +0800
committerEric Wieser <wieser.eric@gmail.com>2017-09-13 09:16:23 -0700
commit03f3789efe4da2c56d2841ed027ef6735ca2f11b (patch)
treef837acfe5ee4cfd7d6422ee142da995c433c8ff4 /numpy/add_newdocs.py
parentff8b298084b0e9014a0d8d26d5c90eddce6a5400 (diff)
downloadnumpy-03f3789efe4da2c56d2841ed027ef6735ca2f11b.tar.gz
ENH: Align data in np.save() at 64 bytes (#9025)
Previously, saving format version 1 would align to 16 bytes, and saving version 2 would align improperly (bug #8085). Alignment is now always at least 64 bytes in either version, which supports memory mapping of the saved files on Linux, where mmap() offset must be a multiple of the page size. Why 64 bytes? Simply because we don't know of a case where more is needed. AVX alignment is 32 bytes; AVX-512 is 64. Fixes #8085, closes #8598.
Diffstat (limited to 'numpy/add_newdocs.py')
0 files changed, 0 insertions, 0 deletions