diff options
author | Antony Lee <anntzer.lee@gmail.com> | 2021-08-02 22:25:56 +0200 |
---|---|---|
committer | Antony Lee <anntzer.lee@gmail.com> | 2021-08-02 22:37:45 +0200 |
commit | 60fd08679dda9f690e6548bf5ec77e66e1f6dd68 (patch) | |
tree | 519d01a020cf3020f6228a5aa90dbd3eae9b4396 /numpy/array_api/_elementwise_functions.py | |
parent | f25905b5d25a2fca1e23adad11d4597a1e658276 (diff) | |
download | numpy-60fd08679dda9f690e6548bf5ec77e66e1f6dd68.tar.gz |
PERF: Speedup comments handling in loadtxt.
Regexes are quite slow; using str.split instead improves performance
(likely, regexes could be better for somewhat artificial cases where
there's a lot of different comment strings).
`python runtests.py --bench bench_io` reports a ~5% perf gain.
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions