Re: Performance profiling Python code

2006-03-24 Thread Felipe Almeida Lessa
Em Sex, 2006-03-24 às 15:58 -0500, Jack Diederich escreveu: > As a last resort you can write the sensitive bits in C and add a python > wrapper. For the ICFP contest[1] each year I write the few primitives > in C and all the logic in python and it works quite well. Before that, try Psyco. It help

Re: Performance profiling Python code

2006-03-24 Thread Jack Diederich
On Fri, Mar 24, 2006 at 09:33:55PM +0100, Andreas R?sdal wrote: > Hi, > > I'm using the Python profiler to optimize a pathfinding algorithm of a > game, and would like some help from someone who knows how to improve the > performance of Python code. The algorithm is A-Star, and it works > correctl

Performance profiling Python code

2006-03-24 Thread Andreas Røsdal
Hi, I'm using the Python profiler to optimize a pathfinding algorithm of a game, and would like some help from someone who knows how to improve the performance of Python code. The algorithm is A-Star, and it works correctly. However, the interface that I made between the A-Star pathfinding algorit