Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Sturla Molden
> After using time.clock, running f2py with the REPORT_ON_ARRAY_COPY enabled > and > passing arrays as np.asfortranarray(array) to the fortran routines I still > get a > slow performance on f2py. No copied arrays are reported. That is not any better as np.asfortranarray will make a copy instead.

Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Vasileios Gkinis
Sturla Molden molden.no> writes: > > > > It looks like the gain in performance is > > rather low compared to tests i have seen elsewhere. > > > > Am I missing something here..? > > > > Cheers...Vasilis > > Turn HTML off please. > > Use time.clock(

Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Sturla Molden
> It looks like the gain in performance is > rather low compared to tests i have seen elsewhere. > > Am I missing something here..? > > Cheers...Vasilis Turn HTML off please. Use time.clock(), not time.time(). Try some tasks that actually takes a wh

Re: [Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Robin
On Mon, Aug 16, 2010 at 10:12 AM, Vasileios Gkinis wrote: > Hi all, > > This is a question on f2py. > I am using a Crank Nicholson scheme to model a diffusion process and in the > quest of some extra speed I started playing with f2py. > However I do not seem to be able to get any significant boos

[Numpy-discussion] f2py performance question from a rookie

2010-08-16 Thread Vasileios Gkinis
Hi all, This is a question on f2py. I am using a Crank Nicholson scheme to model a diffusion process and in the quest of some extra speed I started playing with f2py. However I do not seem to be able to get any significant boost in