Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-07 Thread Michael J. Barber
On Dec 6, 2005, at 6:08 PM, Christopher Barker wrote: Have I got them all? I hope this helps. A fairly esoteric one: pycaml. http://pycaml.sourceforge.net/ Note that I have not yet tried pycaml. It is claimed to allow Ocaml libraries to be used from Python, and vice versa. Anyone have any

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Brian Ray
On Dec 6, 2005, at 11:07 AM, Louis Pecora wrote:I see there are many other approaches (SWIG, Pyrex, Psyco -- some may  not be available on the Mac), so I thought I would start here to ask  what people in this email list use and recommend.  Rewriting as "C" extensions is a good approach. But as you

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Brian Ray
On Dec 6, 2005, at 11:39 AM, Louis Pecora wrote: Thanks for the tips, Brian.  Wish I had that Intel Chip Mac Powerbook  now.  :-) BTW, I think you get a loner from Apple if your a transition developer. I have seen one although, I do not know the

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Kevin Dangoor
On Dec 6, 2005, at 11:07 AM, Louis Pecora wrote: I see there are many other approaches (SWIG, Pyrex, Psyco -- some may not be available on the Mac), so I thought I would start here to ask what people in this email list use and recommend. Earlier in the year, Phillip Eby was optimizing his

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Kevin Dangoor wrote: Earlier in the year, Phillip Eby was optimizing his RuleDispatch package. There were many tweaks he was able to do *completely in Python* that resulted in a decent speedup. Here's one of his posting on the topic: http://dirtsimple.org/2005/02/optimization-surprises.html

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Louis Pecora
Nicholas Riley wrote: Perhaps you can describe some of the bottlenecks you're experiencing, or post some code fragments? The lsprof profiler has worked for me: http://codespeak.net/svn/user/arigo/hack/misc/lsprof/ Thanks for the pointer, Nick. I have no particular example right now.

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Dethe Elza
On Tue 2005-12-06, at Tue 2005-12-06T10:08 AM, Christopher Barker wrote: [Great list snipped] Have I got them all? I hope this helps. Ctypes allows you to call C code from Python without an extension, but is fairly hairy to write. One Mac-specific way is to expose the C code via