by xoudini · 5y ago · 0 comments
I did a quick test of this `reverse` function (which probably shouldn't exist in the first place) and, unsurprisingly, it became ~30% faster when `len(arr)` was only called once.
There's a reason NumPy's innards aren't Python code.