On 05/29/2013 12:37 PM, Stéfan van der Walt wrote:
Hi everyone
Two Cython related suggestions:
I just read your (admittedly quite old) mail just now and though "hey didn't I use memory views for the segmentation algorithms?" Turns out, I didn't. That explains why they are slower than C. Not sure why I did that... One day, I'll update them, I'm sure ;) Cheers, Andy
Hi Andy, On Mon, Jul 1, 2013 at 5:13 PM, Andreas Mueller <amueller@ais.uni-bonn.de>wrote:
Turns out, I didn't. That explains why they are slower than C. Not sure why I did that...
Not really: http://jakevdp.github.io/blog/2012/08/08/memoryview-benchmarks/ Cython + pointers is just as fast as memoryviews. And on SLIC at least, you made liberal use of pointers. =) I just tried my hand at memoryviews at Stéfan's request and it's quite a bit slower currently. Juan.
participants (2)
-
Andreas Mueller
-
Juan Nunez-Iglesias