summaryrefslogtreecommitdiff
path: root/numpy/array_api/_manipulation_functions.py
diff options
context:
space:
mode:
authorLefteris Loukas <eleftheriosloukas@gmail.com>2022-12-05 12:47:07 +0200
committerGitHub <noreply@github.com>2022-12-05 11:47:07 +0100
commitcfad62fd73c2a0f3d0dc4d73989071e331898a09 (patch)
treefd5eac05fc7616d1e2a00e61909b1c37937d6280 /numpy/array_api/_manipulation_functions.py
parentbc88c024edcc6dccc478748006e7650a61829331 (diff)
downloadnumpy-cfad62fd73c2a0f3d0dc4d73989071e331898a09.tar.gz
ENH: Speedup masked array creation when mask=None (#22725)
This PR Closes gh-17046. The problem was that when calling mask=None, the array creation took seconds compared to the microseconds needed when calling mask=False. Using `mask=None` is a bit dubious, since it has a different meaning from the default `mask=nomask`, but the speed trap is so hard to find, that it seems pragmatic to support it. OTOH, it also would seem fine to deprecate the whole path (or maybe see if the path can be sped up so that the speed difference isn't forbidding eough to bother).
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
0 files changed, 0 insertions, 0 deletions