numarray.array can be VERY slow
#! /usr/bin/env python
"""Should this program take 4.3 seconds to run? I have a Linux PC with
an AMD Athlon XP 2000+ chip (1.7Gh). I use Python 2.4.1 and numarray
1.2.3, both compliled from source."""
import time, numarray
from numarray.numerictypes import *
nested = []
for i in range(8):
inner = []
for j in range(8):
inner.append(numarray.ones((256,256), Float64))
nested.append(inner)
t = time.clock()
arr = numarray.array(nested)
print time.clock() - t
.
Relevant Pages
- Re: numarray.array can be VERY slow
... an AMD Athlon XP 2000+ chip. ... I use Python 2.4.1 and numarray ... inner = ... (comp.lang.python) - Re: Python evolution: Unease
... > Terry> Numarray has a record array type. ... > Carlos> Although I see your point, in the long term it will be required. ... necessary stuff (I'm not even half done in learning Python) ... (comp.lang.python) - Re: Python on Altix (re-cap)
... Todd Miller wrote: ... > I'm trying to set up Python on a 64-bit Linux super computer which looks ... This message was related to a bug in the numarray setup.py. ... (comp.lang.python) - Re: Microbenchmark: Summing over array of doubles
... been doing some work on adding SIMD support to numarray, ... force gcc to leave the actual calculation in place and give you accurate ... tests using Psyco to remove much of the Python overhead. ... JIT compiler such as Kaffe, and compiling it natively using gcj (the ... (comp.lang.python) - Re : Upgrade woes: Numeric, gnuplot, and Python 2.4
... Subject: Upgrade woes: Numeric, gnuplot, and Python 2.4 ... > version of Numarray. ... (comp.lang.python) |
|