Re: [OT] pass a C callback function to a cythom module via python
April 2, 2012
6:37 p.m.
On Mon, Apr 2, 2012 at 1:29 PM, Nadav Horesh <nadavh.horesh@gmail.com>wrote:
I do not have a benchmark code yet. I am working now on unpythonising the in-loop buffer copy (the line "neigh[:] = self.padded[i:i+ks0, j:j+ks1].ravel()" in filter_iter.pyx)/ When I'll finish this and include your suggestion, I'll be ready for the benchmarking.
My experience with the bilateral filter showed that yellowish lines do not comply with nogil, but it is easy to verify again.
More specifically, anything that makes a call into the Python C-Api is not compatible with nogil. Since, Cython highlights these lines in yellow, your understanding is correct.
4997
Age (days ago)
4997
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Colbert