diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-09-22 17:09:47 -0600 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-09-22 17:09:47 -0600 |
commit | daea42f3e68c4a9ae3cc977f14030082fbb856c5 (patch) | |
tree | 454fd285cf9aaf95f9498a521d29d3faf0919f32 /numpy/array_api/_statistical_functions.py | |
parent | 24c4436b38b0507d757b996a4bd54ce2a9585dd0 (diff) | |
download | numpy-daea42f3e68c4a9ae3cc977f14030082fbb856c5.tar.gz |
BUG: Only call the get_versions() function once on import
When using an in-place build, this function calls various git commands to get
the version number. Previously it was called three times, making 'import
numpy' take over 3 seconds on my machine (it could be even slower on a slow
filesystem). The code has been refactored to only call this function once in
versions.py. Now 'import numpy' on an in-place build only takes 500 ms, which
is still slower than importing the installed version, but that is expected
when using versioneer.
Diffstat (limited to 'numpy/array_api/_statistical_functions.py')
0 files changed, 0 insertions, 0 deletions