Re: Cython guidelines
On 07/02/2013 01:45 AM, Juan Nunez-Iglesias wrote:
Hi Andy,
On Mon, Jul 1, 2013 at 5:13 PM, Andreas Mueller <amueller@ais.uni-bonn.de <mailto: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.
I did use pointers? Well as far as I remember, I tried to make it fast. So yeah, pointers make sense. Not sure what is wrong, then ... anyhow, speed is acceptable, I guess.. Thanks for giving it a shot!
LOL I find it amusing how little you remember about this implementation! ;) On Tue, Jul 2, 2013 at 6:00 PM, Andreas Mueller <amueller@ais.uni-bonn.de>wrote:
On 07/02/2013 01:45 AM, Juan Nunez-Iglesias wrote:
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.
I did use pointers? Well as far as I remember, I tried to make it fast. So yeah, pointers make sense. Not sure what is wrong, then ... anyhow, speed is acceptable, I guess.. Thanks for giving it a shot!
-- You received this message because you are subscribed to the Google Groups "scikit-image" group. To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
participants (2)
-
Andreas Mueller
-
Juan Nunez-Iglesias