Too slow :(
komputerrowerowy opened this issue · 1 comments
komputerrowerowy commented
Hi,
I am writting simple app and I have to use some routing. I saw that route is calculate very slow (road around 5km/3miles in 40sec). Do you know what is a reason? How can I improve it?
micahcochran commented
This is some pretty old code. Here's some general ideas.
-
Since this code is old, there might be performance improvements that Python 3.x has over 2.x. I'd suggest profiling the code.
-
I suspect that the XML parser is going to be the performance issue. You might be able to get better performance by switching XML parsers, but it could be quite a bit of work. A different parser might make it harder to install this, so that can be a trade-off.