[pypy-issue] [issue1010] numpypy: commit the code for array_equal

Dmitrey tracker at bugs.pypy.org
Thu Jan 19 12:24:19 CET 2012


Dmitrey <dmitrey15 at ukr.net> added the comment:

I think using logical_and is bad idea here. I will perform calculation through
whole array, that may be very big or inside a big loop, while in many cases mere
comparing of first 2 elements could be enough to ensure that the arrays differ.
In CPython one can't use the "for" cycle, because it would be too slow (however,
I wonder why wouldn't they use it in C or Cython code), but in PyPy version I
guess things should definitely be this way.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1010>
________________________________________


More information about the pypy-issue mailing list