Performance question about math operations
Fernando PĂ©rez
fperez528 at yahoo.com
Tue Jul 2 13:37:14 EDT 2002
Andrew P. Lentvorski wrote:
> I have a VLSI layout editor written in Python. At its core, it has to
> redraw a lot of polygons. This requires a lot of coordinate conversion
> mathematics. Essentially the following loop:
>
[snip]
Before jumping to writing C extensions, use Numeric
(http://www.pfdubois.com/numpy/). Chances are it will give you enough speed
(close to C) without ever dropping out of python.
Doing any 'real' math-oriented work in python is almost guaranteed to need
Numeric at some point, so you might as well start using it now. It will save
you a lot of time.
cheers,
f
More information about the Python-list
mailing list