[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Need help with Surfarray
On Wed, Oct 05, 2005 at 01:49:27AM +0900, Guillaume Proux wrote:
> Fun...
>
> Looking at your code and profiling it, it is clear that the hotspot is
> where you put it.
>
> numeric provides you with the fromfunction API that should enable you to
> do most of what you want with the big difference is that you cannot use
> the approach you currently use of precalculating the sinus/cosinus table
> but by directly using the math APIs provided for Numeric
>
> The last option I see would be to write a little C extension to do that
> array filling...
>
> Guillaum
I am curious how much psyco improves the perfomance of the code.
Isn't optimizing tight loopage what it does best?
I'd try it myself, but I'm sitting in front of a non-x86 processor at
the moment :)
---
Bob the Hamster