<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Dec 6, 2005, at 11:07 AM, Louis Pecora wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">I see there are many other approaches (SWIG, Pyrex, Psyco -- some may<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">not be available on the Mac), so I thought I would start here to ask<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="2" style="font: 10.0px Monaco">what people in this email list use and recommend.<SPAN class="Apple-converted-space"> </SPAN></FONT></P> </BLOCKQUOTE></DIV><BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Rewriting as "C" extensions is a good approach. But as you already said, it may be time consuming. Maybe break the program in small chunks to see where the bottle neck really exists. If your looking for the culprit, I would recommend taking a look at hotshot &lt;<A href="http://docs.python.org/lib/module-hotshot.html">http://docs.python.org/lib/module-hotshot.html</A>&gt;.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Although it's part of the standard modules, some people do not realize it exists. I found this and other performance tips on Skip's site &lt;<A href="http://orca.mojam.com/~skip/python/fastpython.html">http://orca.mojam.com/~skip/python/fastpython.html</A>&gt;.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Regardless, sounds like you already know the culprit. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Although this will not help you know, I have been told, Pycho &lt;<A href="http://psyco.sourceforge.net">http://psyco.sourceforge.net</A>/&gt; will run on the Intel Chip.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>hth, Brian Ray</DIV><DIV><A href="http://brianray.chipy.org">http://brianray.chipy.org</A></DIV></BODY></HTML>