Those changes both make sense but don't end up changing the performance substantially.

On Apr 15, 2014, at 9:33 AM, Phillip Cloud wrote:

> In pandas/algos.pyx:
> 
> > @@ -132,6 +133,16 @@ cdef _take_2d_object(ndarray[object, ndim=2] values,
> >      return result
> >  
> >  
> > +cdef inline float64_are_diff(float64_t left, float64_t right):
> > +    if right == np.inf or right == -np.inf:
> > +        if left == right:
> you can also say cdef inline bint to indicate to cython that you want to return a C type rather than the default of object (when no return type is specified)
> 
> —
> Reply to this email directly or view it on GitHub.
>