Re: [Numpy-discussion] my cython is slow

2009-01-08 Thread Dag Sverre Seljebotn
Some of the problems you encounter could probably be remedied by better support in Cython for some situations. I've filed two feature request tickets for myself, but I have no idea when or if I'll get around to them. http://trac.cython.org/cython_trac/ticket/177 http://trac.cython.org/cython_tra

Re: [Numpy-discussion] my cython is slow

2009-01-08 Thread John Hunter
On Thu, Jan 8, 2009 at 12:34 PM, Eric Firing wrote: > John Hunter wrote: >> On Wed, Jan 7, 2009 at 5:37 PM, Eric Firing wrote: >> >>> A couple small changes speed it up quite a bit: >>> >>> efir...@manini:~/temp/nnbf$ python test_nnbf.py >>> loading data... this could take a while >>> testing n

Re: [Numpy-discussion] my cython is slow

2009-01-08 Thread Eric Firing
John Hunter wrote: > On Wed, Jan 7, 2009 at 5:37 PM, Eric Firing wrote: > >> A couple small changes speed it up quite a bit: >> >> efir...@manini:~/temp/nnbf$ python test_nnbf.py >> loading data... this could take a while >> testing nnbf... >>10 trials: mean=0.0150, min=0.0100 >> testing nu

Re: [Numpy-discussion] my cython is slow

2009-01-08 Thread John Hunter
On Wed, Jan 7, 2009 at 5:37 PM, Eric Firing wrote: > A couple small changes speed it up quite a bit: > > efir...@manini:~/temp/nnbf$ python test_nnbf.py > loading data... this could take a while > testing nnbf... >10 trials: mean=0.0150, min=0.0100 > testing numpy... >10 trials: mean=0.

Re: [Numpy-discussion] my cython is slow

2009-01-07 Thread Eric Firing
John Hunter wrote: Partly as an excuse to learn cython, and partly because I need to eke out some extra performance of a neighborhood search, I tried to code up a brute force neighborhood search in cython around an N-dimensional point p. I need to incrementally add a point, do a search, add anot

[Numpy-discussion] my cython is slow

2009-01-07 Thread John Hunter
Partly as an excuse to learn cython, and partly because I need to eke out some extra performance of a neighborhood search, I tried to code up a brute force neighborhood search in cython around an N-dimensional point p. I need to incrementally add a point, do a search, add another point, do another