summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorPieter Eendebak <pieter.eendebak@gmail.com>2022-05-03 14:13:52 +0200
committerGitHub <noreply@github.com>2022-05-03 14:13:52 +0200
commitb222eb66c79b8eccba39f46f020ed8303614a87f (patch)
treee7936e6caf600d76aab0c2ea342f51dea262a2e1 /numpy/array_api/_array_object.py
parent4e667cbeaf5b8b4112b6e8bf9140a3d186d490ea (diff)
downloadnumpy-b222eb66c79b8eccba39f46f020ed8303614a87f.tar.gz
PERF: Improve performance of special attribute lookups (#21423)
* PERF cache unicode version of __array_ufunc__ Cache PyUniCode object with value __array_ufunc__ for attribute lookup * MAINT Refactor PyArray_LookupSpecial and PyArray_LookupSpecial_OnInstance Refactor code so the unicode names are interned * clear errors of type PyExc_AttributeError * STY: Tiny style fixes for get_attr_string.h Frankly, we should not use a header anymore there, it should be a C file now, but that is better for another PR/day. Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions