Author: fijal
Branch:
Changeset: r80264:30212baeb975
Date: 2015-10-16 11:38 +0200
http://bitbucket.org/pypy/pypy/changeset/30212baeb975/
Log: unroll find_result_type if the arrays are either virtual or small
diff --git a/pypy/module/micronumpy/casting.py
b/pypy/module/micronumpy/casting.py
--- a/pypy/module/micronumpy/casting.py
+++ b/pypy/module/micronumpy/casting.py
@@ -38,7 +38,9 @@
dtypes_w.append(dtype)
return find_result_type(space, arrays_w, dtypes_w)
-
[email protected]_inside_iff(lambda space, arrays_w, dtypes_w:
+ jit.loop_unrolling_heuristic(arrays_w) and
+ jit.loop_unrolling_heuristic(dtypes_w))
def find_result_type(space, arrays_w, dtypes_w):
# equivalent to PyArray_ResultType
if len(arrays_w) == 1 and not dtypes_w:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit