Ticket #182 (new enhancement)
Inline iterator utility functions
|Reported by:||dagss||Owned by:||somebody|
Filing this as it's an idea and I "need" it, but it is far out and really low priority.
Consider this snippet:
cdef inclusive_range(low, high): newhigh = high + 1 return range(low, high)
Now, inlining this Cython-side could mean very much to performance. So the proposal is: If the iterator in a for-loop calls a cdef function, inspect whether there is a) only one possible return value outside of any branches, and b) if it is a Cython "magic loop function". If so, inline it in Cython.
(There's always the danger of this being too magic *shrug*)