Multithreaded python program freezes

2009-12-20 Thread Andreas Røsdal
Hello, I have some problems with a http proxy which is implemented in Python 2.6. A few times a day, the proxy begins using 100% CPU and doesn't work any more. I have created a thread dump when the problem occurs here: http://www.pvv.ntnu.no/~andrearo/thread-dump.html This is a thread dump duri

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