summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorPieter Eendebak <pieter.eendebak@gmail.com>2022-08-23 08:55:56 +0200
committerGitHub <noreply@github.com>2022-08-23 08:55:56 +0200
commitacdd0e3ffff0db9f45951c6b51887937ca31935e (patch)
treeda6807ee3f96b484dcd1e96da53538953cb31653 /numpy/array_api/_array_object.py
parent8d45b9b33c9957c816cde9f630c5f418224ac5d6 (diff)
downloadnumpy-acdd0e3ffff0db9f45951c6b51887937ca31935e.tar.gz
PERF: Eliminate slow check for pypy during numpy import (#22163)
This PR replaces the import of platform and a call to platform.python_implementation() with a check using sys.implementation.name to improve the numpy import time. The improvement is about 5-10 ms (system dependent). Also see #22061 Co-authored-by: Matti Picus <matti.picus@gmail.com>
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions