Evas.Rect: Use inline and nogil to optimize the intersection helper
This commit is contained in:
parent
fcc93216f9
commit
aaaa3a1438
|
@ -19,7 +19,7 @@ from efl.utils.deprecated cimport DEPRECATED
|
|||
cimport cython
|
||||
|
||||
|
||||
cdef int _spans_intersect(int c1, int l1, int c2, int l2):
|
||||
cdef inline int _spans_intersect(int c1, int l1, int c2, int l2) nogil:
|
||||
return not (((c2 + l2) <= c1) or (c2 >= (c1 + l1)))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue