I did use pointers? Well as far as I remember, I tried to make it fast. So yeah, pointers make sense.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:
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.