[Cython] Boundchecking question
Robert Bradshaw
robertwb at math.washington.edu
Sun Aug 17 06:54:48 CEST 2008
I've been playing with the (very cool!) buffer stuff Dag did getting
ready for the SciPy conference. I've seen a 20% increase in speed not
adjusting for negative indices, but making sure the indices are
unsigned is a pain (especially if there is arithmetic involved). One
proposal that has been brought up is to make positive integer
constants unsigned, which could lead to complications elsewhere and
would still require care. Another proposal that I'd like to throw out
there is to have negative index realigning part of bounds checking,
i.e. negative indices are not checked for if bounds checking is off.
Thoughts?
- Robert
More information about the Cython-dev
mailing list