summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-06-10 19:06:44 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-06-10 23:03:05 +0200
commitc9bf9b0b1c8a85391695d4ded39921e98c63257d (patch)
tree7ce5c0e3ff1d280d697d1eeb9c98d41ff5964597 /numpy/lib/npyio.py
parent75cdf3d82e96e4fb605f3b0ea85961bbc24e70d8 (diff)
downloadnumpy-c9bf9b0b1c8a85391695d4ded39921e98c63257d.tar.gz
ENH: properly fix unaligned load of complex types
the workaround of setting the aligned to false unconditionally makes copying strided complex data extremely slow as it will always do unaligned elementwise memmoves. Instead set the alignment requirement for complex types correct in the dtype to begin with. Note that on 32 bit gcc complex double will still be aligned to 8 bytes unless compiled with -malign-double. It is possible this will introduce new segfaults on architectures without unaligned loads, but this now indicates a missing alignment check in the affected code as the array description is correct.
Diffstat (limited to 'numpy/lib/npyio.py')
0 files changed, 0 insertions, 0 deletions