[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Numeric optimization advice



> Does it look like there is any more superfluous
> array coping going on? I
> think I've got it down to one explicit copy per
> iteration, but I don't
> have the experience to spot these things readily.
> 

Could you get rid of that array copy? 
What I mean is get rid of the memory allocation, and
just copy the data.

Is
neighbours *= 0
neighbours += weightmap
faster?  

Or is there some other way to copy the data, without
doing a new memory allocation?


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org