fast cdef type indexing into lists/tuples via runtime type checking
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 22 Feb 2007 21:17:25 +0000 (13:17 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 22 Feb 2007 21:17:25 +0000 (13:17 -0800)
commitb8dc03f8d97fd9c1502b69ae3939e860f2902d4b
treead9b9e6f827efe5a23e43bea532d7b3f2c1f8aca
parentae87153df35ca8a4bd730352e7f1445acae5b9d1
fast cdef type indexing into lists/tuples via runtime type checking

- 5 times as fast for L[i], list/tuple L, cdef integer type i, 0 <= i < len(L)
- no change for L[a], python object a
- 1-1.5% slowdown for L[i], i negative or out of range
Cython/Compiler/ExprNodes.py