[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Numpy slower than Numeric
I make heavy use of Numeric in my sprite engine.
When I did the following, I was able to 'drop in' numpy as a
replacement, but it took 3x longer to load my complex graphics! :-O
try:
import numpy as Numeric
Numeric.Int = Numeric.int
Numeric.Float = Numeric.float
Numeric.UInt8 = Numeric.unsignedinteger
except ImportError:
import Numeric
I'm leaving numpy in as a fallback import only, now, because of the
speed hit.